/* =========================================================
   NEXORAHOST — ADMIN SETTINGS V5.2 PRO
   ========================================================= */

.nxv5-settings{
    width:100%;
    max-width:1480px;
    margin:26px auto 0;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nxv5-tabs{
    position:sticky;
    top:10px;
    z-index:30;

    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;

    padding:7px;
    margin-bottom:20px;

    border:1px solid #2b3244;
    border-radius:16px;

    background:rgba(13,17,26,.96);
    backdrop-filter:blur(12px);
}

.nxv5-tabs button{
    min-height:64px;

    padding:12px 16px;

    border:1px solid transparent;
    border-radius:11px;

    background:transparent;

    color:#98a1b5;

    text-align:left;
    cursor:pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.nxv5-tabs button:hover{
    background:#151a27;
    color:#fff;
}

.nxv5-tabs button.active{
    background:#1a1f2d;
    border-color:#3b4359;
    color:#fff;
}

.nxv5-tabs button{
    font-size:13px;
    font-weight:700;
}

.nxv5-tabs button>span{
    margin-top:5px;
    font-size:10px;
    font-weight:400;
    line-height:1.35;
    color:#838ca1;
}


/* =========================================================
   GENERAL SPACING
   ========================================================= */

.nxv5-tab-panel.active{
    display:block;
}

.nxv5-tab-panel{
    animation:nxv52Fade .16s ease;
}

@keyframes nxv52Fade{
    from{
        opacity:.55;
        transform:translateY(3px);
    }

    to{
        opacity:1;
        transform:none;
    }
}


/* =========================================================
   OVERVIEW CARDS
   ========================================================= */

.nxv5-overview{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;

    margin-bottom:18px;
}

.nxv5-overview-card{
    min-width:0;
    min-height:104px;

    box-sizing:border-box;

    padding:19px 20px;

    border:1px solid #2b3244;
    border-radius:15px;

    background:#121722;

    display:flex;
    flex-direction:column;
    justify-content:center;

    transition:
        border-color .15s ease,
        transform .15s ease;
}

.nxv5-overview-card:hover{
    border-color:#3a4359;
    transform:translateY(-1px);
}

.nxv5-overview-card>span{
    font-size:10px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.06em;

    color:#838ca1;
}

.nxv5-overview-card>strong{
    margin-top:8px;

    font-size:16px;
    line-height:1.2;
}

.nxv5-overview-card>small{
    margin-top:6px;

    font-size:10px;

    color:#848da1;

    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.nxv5-overview-card>i{
    width:9px;
    height:9px;
    top:20px;
    right:20px;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.nxv5-general-layout{
    display:grid;

    grid-template-columns:
        minmax(0,2.4fr)
        minmax(310px,.8fr);

    gap:17px;

    align-items:start;
}

.nxv5-side-stack{
    display:grid;
    gap:16px;
}


/* =========================================================
   MAIN CARDS
   ========================================================= */

.nxv5-card{
    border:1px solid #2b3244;
    border-radius:16px;

    background:#121722;

    box-shadow:0 1px 0 rgba(255,255,255,.01);
}

.nxv5-card-header{
    min-height:78px;

    box-sizing:border-box;

    padding:19px 21px;

    display:flex;
    align-items:center;
}

.nxv5-card-header.compact{
    min-height:66px;
}

.nxv5-card-header>div:first-child>span{
    margin-bottom:6px;

    font-size:9px;
    font-weight:800;

    color:#7f899f;

    letter-spacing:.09em;
}

.nxv5-card-header h2{
    font-size:16px;
    line-height:1.25;
}

.nxv5-card-header p{
    margin-top:6px;

    font-size:10px;
    line-height:1.5;

    color:#8992a5;
}


/* =========================================================
   FORM
   ========================================================= */

.nxv5-form{
    padding:22px;
}

.nxv5-field{
    margin-bottom:21px;
}

.nxv5-field label{
    font-size:12px;
    font-weight:700;
}

.nxv5-field small{
    margin-top:5px;
    margin-bottom:10px;

    font-size:10px;
    line-height:1.45;

    color:#8790a4;
}

#nxv5AnnouncementCount{
    font-size:10px;
}

.nxv5-field input,
.nxv5-field textarea{
    font-size:12px;

    border-radius:11px;

    padding:13px 14px;

    background:#0d111b;
}

.nxv5-field input{
    min-height:45px;
}

.nxv5-field textarea{
    min-height:125px;
    line-height:1.55;
}


/* =========================================================
   PREVIEW
   ========================================================= */

.nxv5-preview{
    padding:15px;

    margin:-4px 0 22px;

    border-radius:12px;
}

.nxv5-preview-head span{
    font-size:9px;
}

.nxv5-preview-head small{
    font-size:9px;
}

#nxv5AnnouncementPreview{
    min-height:44px;

    box-sizing:border-box;

    display:flex;
    align-items:center;

    padding:12px 14px;

    font-size:11px;
}


/* =========================================================
   SAVE BAR
   ========================================================= */

.nxv5-savebar{
    margin-top:2px;

    padding-top:19px;
}

.nxv5-savebar strong{
    font-size:11px;
}

.nxv5-savebar span{
    font-size:9px;
}

.nxv5-savebar .btn{
    min-width:125px;
    min-height:40px;

    border-radius:10px;
}


/* =========================================================
   STATUS SIDEBAR
   ========================================================= */

.nxv5-health-list{
    padding:7px 19px 15px;
}

.nxv5-health-list>div{
    min-height:50px;

    box-sizing:border-box;

    padding:11px 0;

    grid-template-columns:auto minmax(0,1fr) auto;
}

.nxv5-health-list strong{
    font-size:11px;
}

.nxv5-health-list small{
    font-size:9px;
}

.nxv5-health-list>div>span{
    padding-left:8px;

    font-size:9px;

    white-space:nowrap;
}


/* =========================================================
   MAIL TAB
   ========================================================= */

.nxv5-section-heading{
    min-height:66px;
    margin-bottom:17px;
}

.nxv5-section-heading h2{
    font-size:20px;
}

.nxv5-section-heading p{
    font-size:11px;
}

.nxv5-mail-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.nxv5-mail-card{
    min-height:160px;

    box-sizing:border-box;

    padding:20px;

    display:flex;
    flex-direction:column;
}

.nxv5-mail-card>strong{
    font-size:15px;
}

.nxv5-mail-card>p{
    font-size:10px;
    line-height:1.6;
}


/* =========================================================
   LEGACY MAIL PANEL MOVED INSIDE MAIL TAB
   ========================================================= */

.nxv5-legacy-mail{
    margin-top:17px !important;

    border:1px solid #2b3244 !important;
    border-radius:16px !important;

    background:#121722 !important;

    overflow:hidden;
}


/* =========================================================
   SECURITY / AUDIT
   ========================================================= */

.nxv5-security-heading{
    margin-bottom:16px;
}

.nxv5-audit-search{
    min-width:320px;
}

.nxv5-audit-search input{
    font-size:10px;
}

.nxv5-audit-toolbar{
    min-height:42px;

    margin-bottom:15px;
}

.nxv5-audit-filters{
    gap:8px;
}

.nxv5-audit-filters button{
    min-height:32px;

    padding:7px 12px;

    font-size:9px;

    transition:.15s ease;
}

.nxv5-audit-grid{
    display:grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap:12px;
}

.nxv5-audit-card{
    min-height:86px;

    box-sizing:border-box;

    padding:14px;

    transition:
        border-color .15s ease,
        transform .15s ease;
}

.nxv5-audit-card:hover{
    border-color:#3a4359;
    transform:translateY(-1px);
}

.nxv5-audit-content>strong{
    font-size:10px;
    line-height:1.45;
}

.nxv5-audit-content>small{
    font-size:9px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1250px){

    .nxv5-overview{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .nxv5-general-layout{
        grid-template-columns:
            minmax(0,1.65fr)
            minmax(285px,.8fr);
    }

    .nxv5-audit-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}


@media(max-width:900px){

    .nxv5-tabs{
        position:static;
    }

    .nxv5-general-layout{
        grid-template-columns:1fr;
    }

    .nxv5-side-stack{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .nxv5-mail-grid{
        grid-template-columns:1fr;
    }
}


@media(max-width:680px){

    .nxv5-tabs{
        grid-template-columns:1fr;
    }

    .nxv5-overview,
    .nxv5-side-stack{
        grid-template-columns:1fr;
    }

    .nxv5-card-header,
    .nxv5-section-heading,
    .nxv5-security-heading,
    .nxv5-savebar,
    .nxv5-audit-toolbar{
        flex-direction:column;
        align-items:stretch;
    }

    .nxv5-audit-search{
        width:100%;
        min-width:0;
    }

    .nxv5-audit-grid{
        grid-template-columns:1fr;
    }
}
