/* Paginа: admin/feature-control.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,body{min-height:100%;}

body{
    margin:0;
    background:var(--bg-main);
    color:var(--text);
    font-family:'Montserrat',sans-serif;
}

/* =====================================================
   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;}

/* =====================================================
   MAIN
===================================================== */

.topbar{
    min-height:75px;
    padding:12px 30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:#09090c;
    border-bottom:1px solid var(--border);
}

.page-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.page-title h4{
    margin:0;
    font-weight:700;
    font-size:1.05rem;
}

.page-title small{
    display:block;
    margin-top:3px;
    color:#777;
    font-size:.7rem;
}

.admin-profile{
    display:flex;
    align-items:center;
    gap:10px;
}

.admin-avatar{
    width:38px;
    height: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;
    flex-shrink:0;
}

.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;
}

.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);
}

/* =====================================================
   PAGE
===================================================== */

.page{
    width:100%;
    max-width:1100px;
    margin:0 auto;
    padding:35px 20px 50px;
}

.page-header{margin-bottom:25px;}

.page-header h2{margin-bottom:6px;font-size:1.45rem;}

.page-header p{margin:0;color:#777;font-size:.8rem;line-height:1.6;}

.card-aya{
    background:var(--glass-bg);
    border:1px solid var(--border);
    border-radius:18px;
    padding:24px;
    margin-bottom:18px;
}

/* WARNING */

.master-warning{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:16px 18px;
    background:rgba(255,215,0,.12);
    border:1px solid rgba(255,215,0,.2);
    border-radius:18px;
    margin-bottom:22px;
}

.warning-icon{
    width:38px;
    height:38px;
    flex-shrink:0;
    border-radius:11px;
    background:rgba(255,215,0,.13);
    color:var(--gold);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
}

.master-warning strong{display:block;font-size:.85rem;margin-bottom:3px;}

.master-warning p{margin:0;color:var(--text-muted);font-size:.72rem;line-height:1.6;}

/* STATS */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-bottom:22px;
}

.stat-card{
    background:var(--glass-bg);
    border:1px solid var(--border);
    border-radius:18px;
    padding:17px;
}

.stat-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:13px;
}

.stat-icon{
    width:36px;
    height:36px;
    border-radius:11px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,215,0,.12);
    color:var(--gold);
    font-size:17px;
}

.stat-card.green .stat-icon{background:rgba(34,139,34,.13);color:#54c754;}
.stat-card.red .stat-icon{background:rgba(214,0,0,.12);color:#ef625a;}
.stat-card.blue .stat-icon{background:rgba(60,120,220,.12);color:#6ea4ff;}

.stat-card h3{margin:0;font-size:1.5rem;font-weight:800;}
.stat-card p{margin:4px 0 0;color:var(--text-muted);font-size:.7rem;}

/* TOOLBAR */

.toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px;
    background:var(--glass-bg);
    border:1px solid var(--border);
    border-radius:18px;
    margin-bottom:16px;
}

.search-box{position:relative;flex:1;max-width:430px;}

.search-box i{
    position:absolute;
    left:13px;
    top:50%;
    transform:translateY(-50%);
    color:var(--text-muted);
    font-size:14px;
}

.search-box input{
    width:100%;
    height:40px;
    border:1px solid var(--border);
    background:rgba(0,0,0,.18);
    color:var(--text);
    border-radius:11px;
    padding:0 13px 0 37px;
    outline:none;
    font-size:.72rem;
}

.search-box input:focus{border-color:rgba(255,215,0,.35);}

.filters{display:flex;gap:8px;}

.filter-select{
    height:40px;
    min-width:150px;
    border:1px solid var(--border);
    background:#111116;
    color:var(--text-muted);
    border-radius:11px;
    padding:0 12px;
    outline:none;
    font-size:.7rem;
}

.filter-select option{background:#111116;}

/* FEATURE LIST */

.feature-list{display:grid;gap:10px;}

.feature-card{
    background:var(--glass-bg);
    border:1px solid var(--border);
    border-radius:18px;
    padding:17px;
    display:flex;
    align-items:center;
    gap:16px;
    transition:.2s ease;
}

.feature-card:hover{
    background:var(--glass-bg-hover);
    border-color:rgba(255,255,255,.12);
}

.feature-icon{
    width:48px;
    height:48px;
    flex-shrink:0;
    border-radius:14px;
    background:rgba(255,255,255,.055);
    color:var(--gold);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:21px;
}

.feature-info{flex:1;min-width:0;}

.feature-info h3{margin:0 0 4px;font-size:.85rem;font-weight:700;}

.feature-info p{margin:0;color:var(--text-muted);font-size:.72rem;line-height:1.5;}

.feature-meta{display:flex;gap:7px;align-items:center;margin-top:8px;}

.badge-aya{
    display:inline-flex;
    align-items:center;
    padding:4px 7px;
    border-radius:6px;
    font-size:.55rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    background:rgba(255,255,255,.06);
    color:var(--text-muted);
}

.badge-aya.master{color:var(--gold);background:rgba(255,215,0,.12);}
.badge-aya.core{color:#70c870;background:rgba(34,139,34,.13);}

.toggle-area{display:flex;align-items:center;gap:12px;flex-shrink:0;}

.toggle-label{text-align:right;}

.toggle-label strong{display:block;font-size:.65rem;font-weight:700;}

.toggle-label span{display:block;margin-top:2px;color:var(--text-muted);font-size:.55rem;}

.switch{position:relative;width:48px;height:27px;display:inline-block;}

.switch input{opacity:0;width:0;height:0;}

.slider{
    position:absolute;
    inset:0;
    cursor:pointer;
    border-radius:30px;
    background:#29292f;
    border:1px solid rgba(255,255,255,.08);
    transition:.25s;
}

.slider::before{
    content:"";
    position:absolute;
    width:19px;
    height:19px;
    left:3px;
    top:3px;
    border-radius:50%;
    background:#8b8b92;
    transition:.25s;
}

.switch input:checked + .slider{
    background:rgba(34,139,34,.55);
    border-color:rgba(80,190,80,.35);
}

.switch input:checked + .slider::before{
    transform:translateX(21px);
    background:#72d572;
}

.switch input:disabled + .slider{opacity:.45;cursor:not-allowed;}

/* INFO CARD */

.info-card{
    margin-top:18px;
    padding:17px 19px;
    border:1px solid var(--border);
    background:rgba(255,255,255,.025);
    border-radius:18px;
}

.info-card h3{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:.8rem;
    margin:0 0 7px;
}

.info-card h3 i{color:var(--gold);}

.info-card p{color:var(--text-muted);font-size:.72rem;line-height:1.7;margin:0;}

/* TOAST */

.toast{
    background:#17171d;
    color:var(--text);
    border:1px solid var(--border);
}

.toast-body{font-size:.72rem;}

::-webkit-scrollbar{width:6px;}
::-webkit-scrollbar-track{background:#08080a;}
::-webkit-scrollbar-thumb{background:#333;border-radius:10px;}
::-webkit-scrollbar-thumb:hover{background:#FFD700;}

@media(max-width:1100px){
    .stats-grid{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:991px){
    .sidebar{transform:translateX(-100%);}
    .sidebar.show{transform:translateX(0);}
    .main-content{margin-left:0;}
    .sidebar-overlay.show{display:block;}
    #menuButton{display:flex;}
    .topbar{padding:12px 18px;}
    .page{padding:28px 16px 45px;}
}

@media(min-width:992px){
    #menuButton{display:none;}
}

@media(max-width:700px){
    .topbar{min-height:68px;}
    .page-title h4{font-size:.95rem;}
    .page-title small{display:none;}
    .admin-info{display:none;}
    .page{padding:24px 14px 40px;}
    .page-header h2{font-size:1.25rem;}
    .toolbar{flex-direction:column;align-items:stretch;}
    .search-box{max-width:none;}
    .filters{display:grid;grid-template-columns:1fr 1fr;}
    .filter-select{min-width:0;width:100%;}
}

@media(max-width:600px){
    .stats-grid{grid-template-columns:1fr 1fr;gap:9px;}
    .stat-card{padding:13px;}
    .stat-card h3{font-size:1.2rem;}
    .feature-card{padding:14px;gap:11px;}
    .feature-icon{width:40px;height:40px;font-size:18px;}
    .toggle-label{display:none;}
    .toggle-area{margin-left:auto;}
    .feature-info h3{font-size:.72rem;}
    .feature-info p{font-size:.65rem;}
}

        /* ===== 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;}