/* Estilo para Login e Painel Admin */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
}

/* --- TELA DE LOGIN (COM AJUSTES DE SIMETRIA) --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #F87060, #ffc3a0);
}

.login-box {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-box form {
    width: 100%;
    margin-top: 1rem;
}

.logo {
    color: #F87060;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    margin-bottom: 1.5rem;
    color: #666;
}

.input-group {
    margin-bottom: 1.25rem;
    text-align: left;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #F87060;
    box-shadow: 0 0 0 3px rgba(248, 112, 96, 0.2);
}

.btn-login {
    width: 100%;
    padding: 0.9rem;
    border: none;
    background-color: #F87060;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.btn-login:hover {
    background-color: #e05a4a;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* --- PAINEL ADMIN --- */
.admin-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 1.8rem;
    color: #F87060;
}

.admin-header a {
    text-decoration: none;
    color: #555;
    background-color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.admin-section {
    margin-bottom: 2.5rem;
}

.admin-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #F87060;
    padding-bottom: 0.5rem;
    display: inline-block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f8f8;
}

tr:hover {
    background-color: #fdfcfa;
}

.btn-excluir {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* === ESTILOS PARA AS NOVAS FUNCIONALIDADES DO PAINEL ADMIN === */
.search-container {
    margin-bottom: 1.5rem;
}

#searchInput {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    box-sizing: border-box;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-container input {
    flex-grow: 1;
}

.btn-copiar {
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.btn-copiar:hover {
    background-color: #e0e0e0;
}

/* === ESTILO DO OLHO MOSTRAR/OCULTAR SENHA === */
.password-container input[type="password"],
.password-container input[type="text"] {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    line-height: 0;
}

/* No painel admin, o botão 'copiar' empurra o olho para a esquerda */
.admin-container .password-container .toggle-password {
    right: 110px; /* Ajustado para dar espaço ao botão Copiar */
}

/* Caso especial para o login, onde não há botão copiar */
.login-box .password-container .toggle-password {
    right: 10px;
}

/* === ESTILOS PARA O MODAL DE NOVO CLIENTE === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: var(--cor-principal, #F87060);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.modal-body p {
    margin-bottom: 1rem;
}

.login-details-box {
    background-color: #f5f7f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
}

.modal-footer {
    text-align: right;
    margin-top: 1.5rem;
}