/* =============================================
   ESTILOS PRINCIPAIS - ASSUON.SITE
   ZERO DEPENDÊNCIAS EXTERNAS
   ============================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;

    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --danger-dark: #dc2626;

    --nav-blue-1: #071629;
    --nav-blue-2: #10213c;
    --nav-blue-3: #3574F0;

    --bg: #dfe9f6;
    --bg-soft: #e7eff8;
    --bg-card: #ffffff;
    --bg-card-soft: #edf4fb;

    --text: #1e293b;
    --text-light: #475569;
    --text-muted: #64748b;

    --border: rgba(83, 116, 168, .24);
    --border-strong: rgba(83, 116, 168, .34);
    --border-focus: #93c5fd;

    --shadow: 0 8px 22px rgba(15, 23, 42, .08);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, .12);
    --shadow-lg: 0 22px 54px rgba(15, 23, 42, .18);
    --shadow-nav: 0 12px 30px rgba(15, 23, 42, .24);

    --radius: 14px;
    --radius-sm: 10px;
    --transition: 0.2s ease;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(circle at top left, rgba(53, 116, 240, .10), transparent 34%),
        radial-gradient(circle at bottom right, rgba(16, 33, 60, .08), transparent 36%),
        linear-gradient(180deg, #d8e4f2 0%, #e7eff8 52%, #eef4fa 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVBAR ========== */

.navbar {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.10), transparent 32%),
        linear-gradient(135deg, var(--nav-blue-1) 0%, var(--nav-blue-2) 58%, var(--nav-blue-3) 100%);
    border-bottom: 1px solid rgba(255,255,255,.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-nav);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    position: relative;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
    line-height: 1;
    flex-shrink: 0;
}

.nav-logo span {
    text-decoration: none;
}

.nav-logo:hover {
    color: #dbeafe;
}

.nav-logo .logo-emoji {
    display: none;
}

.nav-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    padding: 4px;
    box-shadow: 0 8px 18px rgba(0,0,0,.20);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255,255,255,.88);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover {
    background: rgba(255,255,255,.12);
    color: #ffffff;
}

.btn-nav-cadastro {
    background: rgba(255,255,255,.95) !important;
    color: var(--nav-blue-2) !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.btn-nav-cadastro:hover {
    background: #ffffff !important;
    color: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.70);
    background: rgba(255,255,255,.85);
}

.nav-user-dropdown {
    position: relative;
}

.nav-user-trigger {
    cursor: pointer;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.88);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
}

.nav-user-trigger:hover,
.nav-user-dropdown.open .nav-user-trigger,
.nav-user-dropdown:hover .nav-user-trigger {
    background: rgba(255,255,255,.12);
    color: #ffffff;
}

.nav-caret {
    font-size: .72rem;
    opacity: .85;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background:
        radial-gradient(circle at top left, rgba(53,116,240,.10), transparent 40%),
        linear-gradient(180deg, #f8fbff 0%, #eaf2fb 100%);
    border: 1px solid rgba(83, 116, 168, .26);
    border-radius: 16px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, .24);
    min-width: 230px;
    list-style: none;
    padding: 8px;
    z-index: 1001;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background: #f8fbff;
    border-left: 1px solid rgba(83, 116, 168, .20);
    border-top: 1px solid rgba(83, 116, 168, .20);
    transform: rotate(45deg);
}

.nav-user-dropdown:hover .nav-dropdown,
.nav-user-dropdown.open .nav-dropdown {
    display: block;
}

/* Correção importante: dropdown dentro da nav NÃO pode herdar link branco */
.nav-menu .nav-dropdown a,
.nav-dropdown a {
    color: #102033 !important;
    background: transparent;
    padding: 11px 14px;
    display: flex;
    width: 100%;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
}

.nav-menu .nav-dropdown a:hover,
.nav-dropdown a:hover {
    background: rgba(53, 116, 240, .12);
    color: #1d4ed8 !important;
}

.nav-toggle {
    display: none;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #ffffff;
    padding: 4px 9px;
    line-height: 1;
}

/* ========== MAIN CONTENT ========== */

.main-content {
    flex: 1;
    padding: 30px 0;
}

/* ========== HERO ========== */

.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(5%, 5%);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== BOTÕES ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-family: var(--font);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-success {
    background: var(--secondary);
    color: #fff;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 15px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ========== CARDS ========== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.38), transparent 36%),
        linear-gradient(180deg, #d9e6f4 0%, #eaf2fb 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.card-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.card-icon.green {
    background: #d1fae5;
    color: var(--secondary);
}

.card-icon.amber {
    background: #fef3c7;
    color: var(--accent);
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #102033;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== FORMULÁRIOS ========== */

.form-container {
    max-width: 500px;
    margin: 30px auto;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.38), transparent 36%),
        linear-gradient(180deg, #d9e6f4 0%, #eaf2fb 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #102033;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #102033;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid rgba(83, 116, 168, .28);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    background: rgba(255,255,255,.64);
    color: #102033;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.14);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
}

/* ========== ALERTAS ========== */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: var(--primary-light);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ========== TABELAS ========== */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background:
        linear-gradient(180deg, #e2edf8 0%, #f1f6fb 100%);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(83, 116, 168, .20);
}

th {
    background: #d5e3f3;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #334155;
}

tr:hover {
    background: rgba(255,255,255,.38);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-muted {
    background: #e2e8f0;
    color: #334155;
}

/* ========== PAINEL ========== */

.painel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.painel-header h1 {
    font-size: 1.6rem;
    color: #102033;
}

.painel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.38), transparent 36%),
        linear-gradient(180deg, #d9e6f4 0%, #eaf2fb 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-card .stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 700;
}

/* ========== PERFIL ========== */

.perfil-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.perfil-sidebar,
.perfil-main {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.38), transparent 36%),
        linear-gradient(180deg, #d9e6f4 0%, #eaf2fb 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.perfil-sidebar {
    padding: 25px;
    text-align: center;
    height: fit-content;
}

.perfil-foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(53, 116, 240, .25);
    margin-bottom: 15px;
    background: rgba(255,255,255,.65);
}

.perfil-nome {
    font-size: 1.1rem;
    font-weight: 700;
    color: #102033;
}

.perfil-tipo {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.perfil-main {
    padding: 30px;
}

/* ========== FOOTER ========== */

.footer {
    background: #1e293b;
    color: #cbd5e1;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #334155;
    font-size: 0.85rem;
}

/* ========== RESPONSIVO ========== */

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background:
            linear-gradient(180deg, var(--nav-blue-2) 0%, #071629 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-bottom: 1px solid rgba(255,255,255,.12);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 12px;
        width: 100%;
        color: rgba(255,255,255,.90);
    }

    .nav-menu a:hover {
        background: rgba(255,255,255,.12);
        color: #ffffff;
    }

    .nav-user-trigger {
        width: 100%;
        justify-content: flex-start;
        padding: 12px;
        color: rgba(255,255,255,.90);
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid rgba(255,255,255,.10);
        padding: 6px;
        background: rgba(255,255,255,.08);
        width: 100%;
        margin-top: 5px;
        border-radius: 12px;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-menu .nav-dropdown a,
    .nav-dropdown a {
        color: rgba(255,255,255,.92) !important;
        background: transparent;
        padding: 10px 12px;
    }

    .nav-menu .nav-dropdown a:hover,
    .nav-dropdown a:hover {
        background: rgba(255,255,255,.12);
        color: #ffffff !important;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .perfil-container {
        grid-template-columns: 1fr;
    }

    .form-container {
        margin: 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .footer-col {
        text-align: center;
    }

    .footer-col ul {
        padding-left: 0;
    }
}
/* ========== PAINEL ASSOCIADO - AÇÕES ========== */

.painel-acoes-associado {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
}

.painel-acao-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3574F0 0%, #245fd1 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 900;
    font-size: .95rem;
    border: 1px solid rgba(255, 255, 255, .20);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
    transition: .2s ease;
}

.painel-acao-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(37, 99, 235, .32);
    filter: brightness(.98);
}

.painel-acao-download {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: 0 12px 28px rgba(20, 184, 166, .24);
}

.painel-acao-download:hover {
    box-shadow: 0 18px 38px rgba(20, 184, 166, .32);
}

.painel-acao-icon {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .painel-acoes-associado {
        flex-direction: column;
    }

    .painel-acao-btn {
        width: 100%;
    }
}
.perfil-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.perfil-title-row h2 {
    margin: 0;
}

.perfil-voltar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.perfil-voltar-btn:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.05);
}