/* ===== RESET E VARIÁVEIS (herdadas do site principal) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a1e3c;
    --primary-light: #1a3a6b;
    --secondary: #00d4ff;
    --secondary-dark: #0099cc;
    --accent: #6c5ce7;
    --gray-bg: #f4f7fc;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --shadow: 0 20px 60px rgba(10, 30, 60, 0.12);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f5;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ESPECÍFICO ===== */
.cliente-header {
    background: rgba(10, 30, 60, 0.95);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cliente-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.cliente-header .logo i {
    font-size: 32px;
    color: var(--secondary);
    background: rgba(0, 212, 255, 0.15);
    padding: 8px;
    border-radius: 12px;
}
.cliente-header .logo span {
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}
.cliente-header .logo span small {
    font-weight: 400;
    font-size: 14px;
    color: var(--secondary);
    display: block;
    margin-top: -4px;
    letter-spacing: 2px;
}
.btn-nav {
    background: var(--secondary);
    color: var(--primary) !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.btn-nav:hover {
    background: white;
    transform: scale(1.03);
}

/* ===== ÁREA DO CLIENTE ===== */
.cliente-section {
    flex: 1;
    padding: 40px 0 60px;
}
.cliente-wrapper {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    min-height: 500px;
    transition: var(--transition);
}

/* LOGIN */
.login-box {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}
.login-box h3 {
    font-size: 24px;
    margin-bottom: 8px;
}
.login-box p {
    color: var(--text-light);
    margin-bottom: 30px;
}
.login-box input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    margin-bottom: 16px;
    font-size: 16px;
    transition: var(--transition);
}
.login-box input:focus {
    outline: none;
    border-color: var(--secondary-dark);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}
.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 40px;
    font-weight: 700;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.25);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}
.btn-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

/* DASHBOARD */
.dashboard {
    display: none;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}
.dash-header h3 {
    font-size: 24px;
}
.status-badge {
    background: #10b981;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.dash-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    flex-wrap: wrap;
}
.dash-tab {
    background: none;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}
.dash-tab.active {
    background: var(--primary);
    color: white;
}
.dash-tab:hover:not(.active) {
    background: #e5e7eb;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}

/* RESUMO */
.resumo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.resumo-card {
    background: var(--gray-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
}
.resumo-card h4 {
    font-size: 14px;
    color: var(--text-light);
}
.resumo-card p {
    font-size: 24px;
    font-weight: 800;
    margin-top: 4px;
    color: var(--primary);
}

/* FATURAS */
.fatura-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tabela-faturas {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tabela-faturas th {
    background: var(--gray-bg);
    text-align: left;
    padding: 14px 20px;
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tabela-faturas td {
    padding: 14px 20px;
    border-top: 1px solid #edf2f7;
    font-size: 14px;
}
.badge-pago {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-pendente {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* CONTRATO */
.contrato-preview {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.8;
    color: #1f2937;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.contrato-preview h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}
.contrato-preview .clausula {
    margin-bottom: 16px;
}
.contrato-preview .clausula strong {
    display: block;
    font-weight: 700;
    color: var(--primary);
}
.contrato-preview .assinatura {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}
.contrato-preview .assinatura div {
    flex: 1;
    text-align: center;
}
.contrato-preview .assinatura .line {
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
    margin-bottom: 4px;
    min-height: 30px;
}

/* FOOTER */
.cliente-footer {
    background: #060e1a;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.03);
    margin-top: auto;
}
.cliente-footer .footer-content {
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    text-align: center;
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .resumo-grid {
        grid-template-columns: 1fr;
    }
    .contrato-preview .assinatura {
        flex-direction: column;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .cliente-wrapper {
        padding: 20px;
    }
    .dash-header {
        flex-direction: column;
        align-items: start;
        gap: 12px;
    }
    .tabela-faturas {
        font-size: 12px;
    }
    .tabela-faturas th,
    .tabela-faturas td {
        padding: 10px 12px;
    }
}
@media (max-width: 480px) {
    .btn-primary {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}