/* Paginа: admin/dashboard.html — CSS extraido automaticamente */
:root{
    --bg-main:#F5F2E9;
    --bg-secondary:#181818;
    --glass-bg:#FFFFFF;
    --glass-bg-hover:rgba(255,255,255,.95);
    --gold:#16804A;
    --gold-soft:rgba(22,128,74,.10);
    --green:#16804A;
    --green-light:#2FA866;
    --red:#C93632;
    --text:#111111;
    --text-muted:#6f6a5f;
    --border:rgba(17,17,17,.10);
    --sidebar-width:270px;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    overflow-x:hidden;
}

body{
    margin:0;
    background:
        radial-gradient(circle at 20% 20%,rgba(34,139,34,.08),transparent 30%),
        radial-gradient(circle at 80% 80%,rgba(255,215,0,.05),transparent 30%),
        var(--bg-main);
    color:var(--text);
    font-family:'Montserrat',sans-serif;
    overflow-x:hidden;
    min-width:0;
}

button,
a,
input,
select,
textarea{
    font-family:inherit;
}

.dashboard-loading{
    position:fixed;
    inset:0;
    background:#0b0b0f;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:15px;
}

.dashboard-loading img{
    width:80px;
    height:80px;
    object-fit:contain;
    animation:pulseLogo 1.5s infinite;
}

.dashboard-loading p{
    color:#777;
    font-size:.75rem;
    text-align:center;
    margin:0;
}

@keyframes pulseLogo{
    0%,100%{
        opacity:.5;
        transform:scale(.95);
    }

    50%{
        opacity:1;
        transform:scale(1);
    }
}

/* =====================================================
   SIDEBAR - PADRAO CANONICO DO PORTAL
===================================================== */
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);height:100vh;background:var(--bg-secondary);border-right:1px solid var(--border);z-index:1050;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;transition:transform .25s ease;}
.sidebar-brand{display:flex;align-items:center;gap:11px;padding:20px 18px 18px;border-bottom:1px solid var(--border);text-decoration:none;flex-shrink:0;}
.sidebar-brand img{width:38px;height:38px;object-fit:contain;flex-shrink:0;}
.sidebar-brand h5{margin:0;color:var(--gold);font-size:15px;font-weight:800;line-height:1.1;letter-spacing:.8px;}
.sidebar-brand small{display:block;margin-top:2px;color:var(--text-muted);font-size:9px;font-weight:600;letter-spacing:1px;}
.sidebar-menu{flex:1;padding:14px 12px;display:flex;flex-direction:column;gap:2px;}
.sidebar-section{padding:14px 10px 5px;color:var(--text-muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:1.4px;}
.sidebar-menu a{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:9px;color:var(--text-muted);text-decoration:none;font-size:12px;font-weight:600;transition:.15s ease;}
.sidebar-menu a i{width:20px;text-align:center;font-size:16px;flex-shrink:0;}
.sidebar-menu a:hover{background:rgba(255,255,255,.055);color:#fff;}
.sidebar-menu a.active{background:rgba(255,215,0,.10);color:var(--gold);}
.sidebar-divider{height:1px;margin:9px 10px;background:rgba(255,255,255,.045);flex-shrink:0;}
.sidebar-footer{padding:14px 18px;border-top:1px solid var(--border);color:var(--text-muted);font-size:9px;text-align:center;flex-shrink:0;}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:1040;}
.sidebar-overlay.show{display:block;}
.main-content{margin-left:var(--sidebar-width);min-height:100vh;}
#menuButton{display:none;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--border);border-radius:10px;background:var(--glass-bg);color:var(--text-muted);font-size:18px;cursor:pointer;flex-shrink:0;}
#menuButton:hover{background:rgba(255,255,255,.075);color:#fff;}
[data-exige]{display:none !important;}
[data-exige].liberado{display:block !important;}
.sidebar-menu a[data-exige].liberado{display:flex !important;}

.topbar{
    min-height:75px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:12px 30px;
    background:rgba(8,8,11,.75);
    backdrop-filter:blur(15px);
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:1000;
}

.page-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.page-title > div{
    min-width:0;
}

.page-title h4{
    margin:0;
    font-weight:700;
}

.page-title small{
    display:block;
    color:#777;
    font-size:.7rem;
}

.search-box{
    position:relative;
}

.search-box input{
    width:250px;
    background:rgba(255,255,255,.05);
    border:1px solid var(--border);
    color:white;
    border-radius:30px;
    padding:9px 15px 9px 40px;
    font-size:.78rem;
}

.search-box input::placeholder{
    color:#666;
}

.search-box input:focus{
    outline:none;
    border-color:rgba(255,215,0,.4);
    box-shadow:0 0 0 3px rgba(255,215,0,.05);
}

.search-box i{
    position:absolute;
    left:15px;
    top:9px;
    color:#777;
}

.admin-profile{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.admin-avatar{
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--gold),var(--green));
    display:flex;
    align-items:center;
    justify-content:center;
    color:#000;
    font-weight:800;
    overflow:hidden;
    background-size:cover;
    background-position:center;
}

.admin-info{
    min-width:0;
}

.admin-info strong{
    display:block;
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.admin-info small{
    display:block;
    color:#777;
    font-size:.65rem;
}

.dashboard{
    padding:30px;
    min-width:0;
}

/* =====================================================
   CARDS / ESTATISTICAS
===================================================== */

.stat-card{
    background:var(--glass-bg);
    border:1px solid var(--border);
    border-radius:18px;
    padding:22px;
    height:100%;
    position:relative;
    overflow:hidden;
    transition:.3s;
    backdrop-filter:blur(15px);
}

.stat-card:hover{
    transform:translateY(-4px);
    background:var(--glass-bg-hover);
    border-color:rgba(255,215,0,.2);
}

.stat-icon{
    width:45px;
    height:45px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    margin-bottom:15px;
}

.stat-number{
    font-size:1.8rem;
    font-weight:800;
    margin-bottom:2px;
    word-break:break-word;
}

.stat-label{
    color:#888;
    font-size:.75rem;
}

.stat-change{
    position:absolute;
    right:18px;
    top:20px;
    font-size:.65rem;
    color:#55c96f;
    max-width:60%;
    text-align:right;
}

.stat-change.indisponivel{
    color:#776a3a;
}

.section-card{
    background:var(--glass-bg);
    border:1px solid var(--border);
    border-radius:18px;
    padding:25px;
    backdrop-filter:blur(15px);
    height:100%;
    min-width:0;
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:22px;
}

.section-header > div{
    min-width:0;
}

.section-header h5{
    margin:0;
    font-weight:700;
}

.section-header small{
    color:#777;
}

.btn-aya{
    background:linear-gradient(90deg,var(--gold),#e9c600);
    color:#000;
    border:none;
    border-radius:9px;
    padding:9px 16px;
    font-weight:700;
    font-size:.75rem;
    transition:.25s;
}

.btn-aya:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(255,215,0,.15);
    color:#000;
}

.btn-outline-aya{
    border:1px solid rgba(255,215,0,.4);
    color:var(--gold);
    background:transparent;
    border-radius:9px;
    padding:8px 14px;
    font-size:.72rem;
}

.btn-outline-aya:hover{
    background:rgba(255,215,0,.08);
    color:var(--gold);
}

.table-responsive{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
}

.table{
    color:#ddd;
    margin:0;
    font-size:.75rem;
    min-width:720px;
}

.table thead{
    border-bottom:1px solid var(--border);
}

.table th{
    color:#777;
    font-size:.65rem;
    text-transform:uppercase;
    letter-spacing:.5px;
    font-weight:700;
    padding:12px;
    white-space:nowrap;
}

.table td{
    padding:14px 12px;
    border-color:var(--border);
    vertical-align:middle;
}

.table tbody tr{
    transition:.2s;
}

.table tbody tr:hover{
    background:rgba(255,255,255,.025);
}

.member{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:180px;
}

.member-avatar{
    width:34px;
    height:34px;
    min-width:34px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--green),#0d4d0d);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:.7rem;
    font-weight:700;
    overflow:hidden;
    background-size:cover;
    background-position:center;
}

.member-name{
    font-weight:600;
    font-size:.75rem;
}

.member-role{
    display:block;
    color:#777;
    font-size:.6rem;
}

.badge-aya{
    display:inline-block;
    padding:5px 9px;
    border-radius:20px;
    font-size:.58rem;
    font-weight:700;
}

.badge-green{
    background:rgba(34,139,34,.15);
    color:#55c96f;
}

.badge-gold{
    background:rgba(255,215,0,.12);
    color:var(--gold);
}

.badge-red{
    background:rgba(214,0,0,.12);
    color:#ff5555;
}

.badge-blue{
    background:rgba(0,130,255,.12);
    color:#55aaff;
}

.badge-grey{
    background:rgba(255,255,255,.07);
    color:#888;
}

/* =====================================================
   ATIVIDADES
===================================================== */

.activity{
    display:flex;
    gap:14px;
    padding:13px 0;
    border-bottom:1px solid var(--border);
}

.activity:last-child{
    border-bottom:none;
}

.activity-icon{
    width:35px;
    height:35px;
    min-width:35px;
    border-radius:10px;
    background:rgba(255,215,0,.08);
    color:var(--gold);
    display:flex;
    align-items:center;
    justify-content:center;
}

.activity-text{
    font-size:.7rem;
    line-height:1.5;
    min-width:0;
}

.activity-text strong{
    color:#fff;
    overflow-wrap:anywhere;
}

.activity-time{
    color:#666;
    font-size:.6rem;
    margin-top:3px;
}

#activitiesContainer{
    max-height:300px;
    overflow-y:auto;
    padding-right:6px;
}

#activitiesContainer::-webkit-scrollbar{
    width:5px;
}

#activitiesContainer::-webkit-scrollbar-track{
    background:transparent;
}

#activitiesContainer::-webkit-scrollbar-thumb{
    background:#333;
    border-radius:10px;
}

#activitiesContainer::-webkit-scrollbar-thumb:hover{
    background:var(--gold);
}

.aviso-nota{
    color:#666;
    font-size:.62rem;
    margin-top:10px;
}

/* =====================================================
   MODULOS
===================================================== */

.module-card{
    padding:20px;
    border-radius:15px;
    background:rgba(255,255,255,.035);
    border:1px solid var(--border);
    transition:.3s;
    height:100%;
    min-width:0;
}

.module-card:hover{
    background:rgba(255,255,255,.07);
    transform:translateY(-3px);
}

.module-icon{
    width:45px;
    height:45px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    margin-bottom:15px;
}

.module-card h6{
    font-weight:700;
    margin-bottom:7px;
}

.module-card p{
    color:#777;
    font-size:.68rem;
    margin:0;
    line-height:1.5;
}

/* =====================================================
   PERFIL
===================================================== */

.profile-box{
    text-align:center;
}

.profile-photo{
    width:80px;
    height:80px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--gold),var(--green));
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 12px;
    color:#000;
    font-size:1.5rem;
    font-weight:800;
    overflow:hidden;
    background-size:cover;
    background-position:center;
}

.aya-alert{
    position:fixed;
    right:25px;
    bottom:25px;
    z-index:99999;
    min-width:280px;
    max-width:400px;
    padding:15px 18px;
    border-radius:12px;
    background:#15151b;
    border:1px solid var(--border);
    box-shadow:0 15px 40px rgba(0,0,0,.5);
    display:none;
    font-size:.75rem;
}

.aya-alert.show{
    display:block;
    animation:alertIn .3s ease;
}

@keyframes alertIn{
    from{
        opacity:0;
        transform:translateY(15px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.senha-bloco{
    background:rgba(34,139,34,.1);
    border:1px solid rgba(34,139,34,.3);
    border-radius:12px;
    padding:14px;
    font-size:.78rem;
}

.senha-bloco code{
    color:#55d66d;
    font-size:1rem;
    letter-spacing:1px;
    user-select:all;
    overflow-wrap:anywhere;
}

.modal-content{
    background:#111116 !important;
    color:#eee;
    border:1px solid rgba(255,255,255,.1) !important;
    border-radius:18px !important;
}

.modal .form-control,
.modal .form-select{
    background:#0b0b0f;
    color:#fff;
    border-color:#333;
}

.modal .form-control:focus,
.modal .form-select:focus{
    background:#0b0b0f;
    color:#fff;
    border-color:var(--gold);
    box-shadow:0 0 0 .2rem rgba(255,215,0,.08);
}

.modal .form-label{
    color:#bbb;
    font-size:.75rem;
    font-weight:600;
}

.modal .form-control::placeholder{
    color:#555;
}

.empty-state{
    text-align:center;
    padding:40px 20px;
    color:#666;
}

.empty-state i{
    font-size:2rem;
    color:#444;
    margin-bottom:10px;
}

.empty-state p{
    font-size:.72rem;
    margin:0;
}

.sidebar-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    z-index:1040;
}

/* =====================================================
   TABLET
===================================================== */

@media(max-width:1199px){

    .dashboard{
        padding:25px;
    }

    .topbar{
        padding-left:22px;
        padding-right:22px;
    }

    .search-box input{
        width:210px;
    }

    .admin-info strong{
        max-width:140px;
    }
}

/* =====================================================
   MOBILE / TABLET
===================================================== */

@media(max-width:991px){

    .sidebar{
        transform:translateX(-100%);
        box-shadow:20px 0 50px rgba(0,0,0,.6);
    }

    .sidebar.show{
        transform:translateX(0);
    }

    .main-content{
        margin-left:0;
    }

    .sidebar-overlay.show{
        display:block;
    }

    .search-box{
        display:none;
    }

    .topbar{
        min-height:68px;
        padding:10px 18px;
    }

    .dashboard{
        padding:20px;
    }

    .page-title h4{
        font-size:1.05rem;
    }

    .admin-profile{
        gap:7px;
    }

    .admin-profile .btn{
        margin-left:0 !important;
    }

    .section-card{
        padding:22px;
    }

    .stat-card{
        padding:20px;
    }

    .module-card{
        padding:18px;
    }
}

/* =====================================================
   CELULARES
===================================================== */

@media(max-width:767px){

    .topbar{
        gap:10px;
    }

    .page-title{
        flex:1;
    }

    .page-title h4{
        font-size:.95rem;
    }

    .admin-profile{
        flex-shrink:0;
    }

    .admin-info{
        display:none;
    }

    .admin-profile .btn{
        display:none;
    }

    .dashboard{
        padding:16px;
    }

    .dashboard > .mb-4 h2{
        font-size:1.45rem;
        line-height:1.25;
    }

    .dashboard > .mb-4 p{
        line-height:1.6;
    }

    .section-card{
        padding:18px;
        border-radius:15px;
    }

    .section-header{
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
        margin-bottom:18px;
    }

    .section-header .btn,
    .section-header a.btn{
        width:100%;
    }

    .stat-card{
        padding:17px;
        border-radius:15px;
    }

    .stat-icon{
        width:40px;
        height:40px;
        margin-bottom:12px;
    }

    .stat-number{
        font-size:1.5rem;
    }

    .stat-label{
        font-size:.68rem;
        line-height:1.35;
        padding-right:4px;
    }

    .stat-change{
        position:static;
        display:block;
        max-width:none;
        text-align:left;
        margin-top:8px;
        font-size:.58rem;
    }

    .module-card{
        padding:16px;
        border-radius:14px;
    }

    .module-card h6{
        font-size:.82rem;
    }

    .module-card p{
        font-size:.64rem;
    }

    .module-card .btn{
        width:100%;
    }

    .profile-box{
        margin-bottom:25px;
    }

    .profile-box + *{
        border-top:1px solid var(--border);
        padding-top:20px;
    }

    .aya-alert{
        left:15px;
        right:15px;
        bottom:15px;
        min-width:0;
        max-width:none;
    }

    .modal-dialog{
        margin:10px;
    }

    .modal-content{
        border-radius:15px !important;
    }

    .modal-body{
        max-height:calc(100vh - 180px);
        overflow-y:auto;
    }

    .modal-footer{
        flex-wrap:wrap;
    }

    .modal-footer .btn,
    .modal-footer a{
        flex:1 1 auto;
    }
}

/* =====================================================
   CELULARES PEQUENOS
===================================================== */

@media(max-width:576px){

    .dashboard{
        padding:14px;
    }

    .page-title small{
        display:none;
    }

    .page-title h4{
        font-size:.9rem;
    }

    .dashboard > .mb-4{
        margin-bottom:20px !important;
    }

    .dashboard > .mb-4 h2{
        font-size:1.3rem;
    }

    .dashboard > .mb-4 p{
        font-size:.72rem !important;
    }

    .section-card{
        padding:16px;
    }

    .section-header h5{
        font-size:.95rem;
    }

    .section-header small{
        font-size:.65rem;
        line-height:1.4;
        display:block;
    }

    .btn-aya{
        width:100%;
    }

    .stat-card{
        padding:15px;
    }

    .stat-number{
        font-size:1.35rem;
    }

    .stat-label{
        font-size:.63rem;
    }

    .module-card{
        padding:14px;
    }

    .module-icon{
        width:40px;
        height:40px;
        font-size:1rem;
        margin-bottom:12px;
    }

    .activity{
        gap:10px;
    }

    .activity-icon{
        width:32px;
        min-width:32px;
        height:32px;
    }

    .activity-text{
        font-size:.66rem;
    }

    .table{
        min-width:700px;
    }

    .table th{
        padding:10px;
    }

    .table td{
        padding:12px 10px;
    }

    .modal-dialog{
        margin:6px;
    }

    .modal-body{
        padding:16px;
    }

    .modal-header,
    .modal-footer{
        padding:14px 16px;
    }
}

/* =====================================================
   CELULARES MUITO PEQUENOS
===================================================== */

@media(max-width:380px){

    .dashboard{
        padding:12px;
    }

    .topbar{
        padding-left:12px;
        padding-right:12px;
    }

    .page-title{
        gap:7px;
    }

    .page-title h4{
        font-size:.82rem;
    }

    .dashboard > .mb-4 h2{
        font-size:1.18rem;
    }

    .section-card{
        padding:14px;
    }

    .stat-card{
        padding:13px;
    }

    .stat-number{
        font-size:1.2rem;
    }

    .stat-label{
        font-size:.6rem;
    }
}

/* =====================================================
   SCROLLBARS
===================================================== */

::-webkit-scrollbar{
    width:6px;
    height:6px;
}

::-webkit-scrollbar-track{
    background:#08080a;
}

::-webkit-scrollbar-thumb{
    background:#333;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--gold);
}

@media(max-width:991px){.sidebar{transform:translateX(-100%);}.sidebar.show{transform:translateX(0);}.main-content,.main{margin-left:0;}#menuButton{display:flex;}}
@media(min-width:992px){#menuButton{display:none;}}
        /* ===== IEPLUS_LIGHT_OVERRIDES : IÃŠ+ tema claro (estrutura/navegaÃ§Ã£o preta com texto claro) ===== */
        .topbar,.sidebar,.sidebar-header,.bottom-navigation,.bottom-nav,.side-nav,.nav-drawer,.app-nav{background:#111111 !important;}
        .topbar,.topbar *,.sidebar *,.bottom-navigation *,.bottom-navigation a,.bottom-navigation i,.bottom-navigation span{color:rgba(255,255,255,.85) !important;}
        .sidebar a.active,.sidebar .active,.bottom-navigation .active{color:#8FE6B4 !important;}
        .sidebar a.active,.bottom-navigation .active{background:rgba(22,128,74,.30) !important;}