/* =========================================
   JIRS UI SYSTEM (ELITE FINAL)
========================================= */
/* GLOBAL FIX */
body{
margin:0;
padding:0;
background:#f4f6f9;
font-family:system-ui, -apple-system, sans-serif;
}

/* FORCE CONTAINER */
.cbt-container{
max-width:800px;
margin:0 auto;
padding:20px;
box-sizing:border-box;
}
/* ===== RESET ===== */
*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial;
background:#f5f7fa;
color:#111827;
}

/* ===== DESIGN TOKENS ===== */
:root{

--primary:#146c43;
--primary-dark:#0f5132;

--blue:#0ea5e9;
--orange:#f59e0b;
--green:#16a34a;
--red:#dc2626;

--text:#111827;
--muted:#6b7280;

--radius:14px;
--radius-sm:10px;

--shadow:0 8px 24px rgba(0,0,0,0.06);

}

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

.container{
max-width:1200px;
margin:auto;
padding:90px 24px 100px;
transition:all .25s ease;
}

/* SIDEBAR CONTROL (FIXED SYSTEM) */
body.has-sidebar .container{
margin-left:240px;
}

body.sidebar-collapsed .container{
margin-left:70px;
}

@media(max-width:768px){
body.has-sidebar .container{
margin-left:0;
}
}

/* =========================================
   HEADER
========================================= */

.header{
position:fixed;
top:0;
left:0;
width:100%;
height:60px;
background:var(--primary);
color:#fff;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 16px;
z-index:1000;
}

.header .title{
font-weight:600;
font-size:16px;
}

.header .menu-btn{
font-size:22px;
cursor:pointer;
}

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

.sidebar{
position:fixed;
top:60px;
left:0;
width:240px;
height:100%;
background:var(--primary);
color:#fff;
padding:20px 0;
transition:all .25s ease;
z-index:999;
overflow-y:auto;
}

.sidebar.collapsed{
width:70px;
}

/* AVATAR */
.sidebar .avatar{
width:60px;
height:60px;
border-radius:50%;
background:#0ea5e9;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
margin:0 auto 10px;
font-size:18px;
}

/* USER */
.sidebar .user{
text-align:center;
font-size:13px;
margin-bottom:20px;
line-height:1.4;
}

/* MENU */
.sidebar a{
display:flex;
align-items:center;
gap:12px;
padding:12px 20px;
color:#fff;
text-decoration:none;
font-size:14px;
transition:all .2s;
}

.sidebar a:hover{
background:rgba(255,255,255,0.1);
}

.sidebar a.active{
background:rgba(255,255,255,0.2);
}

.sidebar.collapsed a span{
display:none;
}

.sidebar.collapsed .user{
display:none;
}

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

.card{
background:#fff;
border-radius:var(--radius);
padding:22px;
box-shadow:var(--shadow);
margin-bottom:24px;
}

/* =========================================
   KPI GRID
========================================= */

.kpi-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:16px;
margin:24px 0;
}

@media(max-width:768px){
.kpi-grid{
grid-template-columns:1fr;
}
}

.kpi-box{
color:#fff;
padding:20px;
border-radius:var(--radius);
font-weight:600;
font-size:15px;
}

.kpi-box.total{background:var(--blue);}
.kpi-box.pending{background:var(--orange);}
.kpi-box.shortlisted{background:var(--green);}
.kpi-box.rejected{background:var(--red);}

/* =========================================
   JOB CARDS
========================================= */

.job-card{
background:#fff;
padding:18px;
border-radius:var(--radius);
box-shadow:var(--shadow);
margin-bottom:16px;
transition:.2s;
}

.job-card:hover{
transform:translateY(-2px);
}

/* =========================================
   BUTTONS
========================================= */

.btn{
display:inline-block;
padding:10px 16px;
border-radius:8px;
background:var(--primary);
color:#fff;
text-decoration:none;
font-size:14px;
border:none;
cursor:pointer;
transition:.2s;
}

.btn:hover{
background:var(--primary-dark);
}

/* =========================================
   BADGES
========================================= */

.status-badge{
padding:4px 10px;
border-radius:999px;
font-size:12px;
background:#e5e7eb;
}

/* =========================================
   MOBILE BOTTOM NAV (ELITE)
========================================= */

.bottom-nav{
position:fixed;
bottom:0;
left:0;
width:100%;
height:70px;
background:#fff;
border-top:1px solid #e5e7eb;
display:flex;
justify-content:space-around;
align-items:center;
z-index:1000;
box-shadow:0 -4px 12px rgba(0,0,0,0.05);
}

.bottom-nav .nav-item{
display:flex;
flex-direction:column;
align-items:center;
font-size:11px;
color:#666;
text-decoration:none;
}

.bottom-nav .icon{
font-size:20px;
margin-bottom:3px;
}

.bottom-nav .nav-item.active{
color:var(--primary);
font-weight:600;
}

@media(min-width:768px){
.bottom-nav{display:none;}
}

/* =========================================
   FORMS (UPGRADED)
========================================= */

input, select, textarea{
padding:12px;
border:1px solid #ddd;
border-radius:10px;
width:100%;
font-size:14px;
transition:.2s;
}

input:focus, select:focus, textarea:focus{
border-color:var(--primary);
outline:none;
box-shadow:0 0 0 2px rgba(20,108,67,0.1);
}

/* =========================================
   TYPOGRAPHY & SPACING
========================================= */

h1{
font-size:26px;
margin-bottom:12px;
}

h2{
font-size:20px;
margin-bottom:10px;
}

p{
margin-bottom:10px;
line-height:1.6;
}

/* =========================================
   UTILITIES
========================================= */

.mt-10{margin-top:10px;}
.mt-20{margin-top:20px;}
.mt-30{margin-top:30px;}

.mb-20{margin-bottom:20px;}

.text-muted{color:var(--muted);}
.text-center{text-align:center;}
/* HEADER */
.site-header{
background:#146c43;
color:#fff;
padding:14px 24px;
position:sticky;
top:0;
z-index:1000;
}

.header-inner{
display:flex;
align-items:center;
justify-content:space-between;
}

/* BRAND */
.brand{
display:flex;
align-items:center;
gap:12px;
}

.brand img{
width:42px;
}

.brand strong{
font-size:17px;
}

.brand small{
opacity:0.85;
}

/* ===== FIX: REMOVE BLUE LINKS ===== */
.top-nav a{
color:#fff !important;
text-decoration:none !important;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav{
position:fixed;
bottom:0;
left:0;
width:100%;
height:65px;
background:#fff;
display:flex;
justify-content:space-around;
align-items:center;
border-top:1px solid #e5e7eb;
z-index:1000;
}

.bottom-nav a{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
font-size:11px;
color:#555;
text-decoration:none;
width:100%;
}

.bottom-nav a span{
display:block;
font-size:20px;
margin-bottom:3px;
}

@media(min-width:768px){
.bottom-nav{display:none;}
}

@media(max-width:768px){
body{padding-bottom:70px;}
}

/* BADGE */
.nav-badge{
background:#dc2626;
color:#fff;
padding:2px 6px;
border-radius:10px;
font-size:11px;
margin-left:4px;
}

/* LOGOUT */
.logout{
background:#ef4444;
padding:6px 14px;
border-radius:6px;
}

/* MOBILE BUTTON */
.menu-toggle{
display:none;
font-size:26px;
background:none;
border:none;
color:#fff;
cursor:pointer;
}

/* MOBILE */
@media (max-width:768px){

.header-inner{
flex-wrap:wrap;
}

.menu-toggle{
display:block;
}

.top-nav{
display:none;
flex-direction:column;
width:100%;
margin-top:10px;
}

.top-nav.show{
display:flex;
}

.top-nav a{
width:100%;
padding:10px 0;
border-top:1px solid rgba(255,255,255,0.15);
}

}

/* MAIN */
.container{
max-width:1200px;
margin:auto;
padding:30px 20px;
}

/* FOOTER */
.site-footer{
text-align:center;
padding:20px;
color:#666;
font-size:13px;
margin-top:40px;
}
body:not(.logged-in) .mobile-nav {
    display: none !important;
}
/* ================= MOBILE NAV ================= */

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 999;
}

.mobile-nav .nav-item {
    text-decoration: none;
    color: #444;
    font-size: 12px;
    text-align: center;
}

.mobile-nav .nav-item span {
    display: block;
    font-size: 18px;
}

.mobile-nav .nav-item.active {
    color: #0b6b3a;
    font-weight: bold;
}

/* ðŸ”´ HIDE ON DESKTOP */
@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}
body.logged-in {
    padding-bottom: 70px;
}
.question-box { margin-bottom:20px; padding:15px; border:1px solid #ddd; border-radius:6px; }
#timer { font-weight:700; color:#b91c1c; margin-bottom:20px; }
/* ===== BOTTOM NAV ===== */
.bottom-nav{
position:fixed;
bottom:0;
left:0;
width:100%;
background:#fff;
border-top:1px solid #ddd;
display:flex;
justify-content:space-around;
padding:6px 0;
z-index:999;
}

.bottom-nav a{
text-decoration:none;
color:#444;
font-size:11px;
text-align:center;
}

.bottom-nav span{
display:block;
font-size:18px;
}

.bottom-nav a.active{
color:#146c43;
font-weight:bold;
}

/* prevent overlap */
body{
padding-bottom:70px;
}

/* hide on desktop */
@media (min-width:768px){
.bottom-nav{display:none;}
}
.badge{
display:inline-block;
padding:4px 10px;
border-radius:20px;
font-size:12px;
margin-bottom:8px;
}

.badge.success{background:#16a34a;color:#fff;}
.badge.warning{background:#f59e0b;color:#fff;}
.badge.neutral{background:#6b7280;color:#fff;}
.pipeline{
display:flex;
gap:6px;
margin-top:10px;
flex-wrap:wrap;
}

.pipe{
font-size:11px;
padding:4px 8px;
border-radius:6px;
background:#e5e7eb;
}

.pipe.done{
background:#16a34a;
color:#fff;
}
#mobileMenu{
position:absolute;
top:70px;
left:0;
width:100%;
background:#146c43;
z-index:999;
overflow:hidden;
max-height:0;
transition:max-height 0.3s ease;
}

#mobileMenu.show{
max-height:500px;
}
#mobileMenu.show ~ .bottom-nav{
display:none;
}
/* CBT CONTAINER */
.cbt-container{
max-width:800px;
margin:auto;
padding:20px;
}

/* QUESTION CARD */
.question-card{
background:#fff;
padding:18px;
margin-bottom:15px;
border-radius:12px;
box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

/* QUESTION TEXT */
.question-text{
font-weight:600;
margin-bottom:12px;
line-height:1.5;
}

/* OPTIONS */
.options{
display:flex;
flex-direction:column;
gap:10px;
}

/* OPTION ITEM */
.option-item{
display:flex;
align-items:flex-start;
gap:10px;
padding:10px;
border-radius:8px;
background:#f9fafb;
cursor:pointer;
}

.option-item input{
margin-top:4px;
}

/* HOVER */
.option-item:hover{
background:#eef2f7;
}

/* SUBMIT BUTTON */
.submit-btn{
width:100%;
margin-top:20px;
padding:14px;
background:#146c43;
color:#fff;
border:none;
border-radius:8px;
font-size:16px;
font-weight:600;
cursor:pointer;
}

/* MOBILE FIX */
@media (max-width:768px){
.cbt-container{
padding:15px;
}

.question-text{
font-size:14px;
}

.option-item span{
font-size:14px;
}
}
/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

/* ===== LAYOUT ===== */
.cbt-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f7fb;
}

/* ===== HEADER ===== */
.cbt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #0d1b2a;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* ===== BODY ===== */
.cbt-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ===== MAIN AREA ===== */
.cbt-main {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    overflow-y: auto;
}

/* ===== QUESTION CARD ===== */
.cbt-card {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ===== QUESTION ===== */
.cbt-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===== OPTIONS ===== */
.cbt-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* OPTION ITEM */
.cbt-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafc;
    border: 1px solid #e3e7ee;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.cbt-option:hover {
    background: #eef3ff;
    border-color: #3b82f6;
}

/* RADIO */
.cbt-option input {
    transform: scale(1.2);
    cursor: pointer;
}

/* ===== ACTION BUTTONS ===== */
.cbt-actions {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* BUTTON BASE */
.cbt-actions button {
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* BUTTON COLORS */
.cbt-actions button:hover {
    opacity: 0.9;
}

.cbt-actions button:nth-child(1),
.cbt-actions button:nth-child(2) {
    background: #e5e7eb;
}

.cbt-actions button:nth-child(3) {
    background: #f59e0b;
    color: #fff;
}

.cbt-actions button:nth-child(4) {
    background: #ef4444;
    color: #fff;
}

.submit-btn {
    background: #10b981;
    color: #fff;
}

/* ===== SIDEBAR ===== */
.cbt-sidebar {
    flex: 1;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    padding: 15px;
    overflow-y: auto;
}

/* ===== PALETTE ===== */
.palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

/* BUTTON */
.p-btn {
    padding: 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    background: #e5e7eb;
}

/* STATES */
.p-btn.answered {
    background: #10b981;
    color: #fff;
}

.p-btn.review {
    background: #f59e0b;
    color: #fff;
}

.p-btn.current {
    background: #3b82f6;
    color: #fff;
}

/* ===== TIMER ===== */
#timer {
    font-size: 16px;
    font-weight: bold;
    color: #facc15;
}

/* ===== STATUS POPUP ===== */
#msg {
    font-size: 13px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .cbt-body {
        flex-direction: column;
    }

    .cbt-sidebar {
        order: -1;
        border-left: none;
        border-bottom: 1px solid #ddd;
    }

    .palette {
        grid-template-columns: repeat(8, 1fr);
    }

    .cbt-main {
        padding: 15px;
    }

    .cbt-card {
        padding: 18px;
    }

    .cbt-question {
        font-size: 16px;
    }
}
@media (max-width: 768px) {

    .cbt-body {
        flex-direction: column;
    }

    .cbt-sidebar {
        display: none; /* hide palette on mobile for now */
    }

    .cbt-main {
        padding: 10px;
    }

    .cbt-question {
        font-size: 16px;
    }
}
.cbt-card {
    width: 100% !important;
    padding: 15px !important;
}

.cbt-options {
    gap: 10px !important;
}

.cbt-option {
    display: flex !important;
    align-items: center !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
}

.cbt-actions button {
    width: 100% !important;
}
/* ===== CBT UI FIX ===== */

.cbt-wrapper{
max-width:700px;
margin:auto;
padding:15px;
}

.cbt-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:15px;
font-weight:600;
}

.timer{
color:#dc2626;
font-size:18px;
font-weight:bold;
}

.cbt-card{
background:#fff;
padding:15px;
border-radius:10px;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.cbt-question{
font-size:16px;
font-weight:600;
margin-bottom:15px;
line-height:1.4;
}

.cbt-options{
display:flex;
flex-direction:column;
gap:10px;
}

.cbt-option{
display:flex;
gap:10px;
padding:12px;
background:#f3f4f6;
border-radius:8px;
cursor:pointer;
align-items:center;
}

.cbt-option input{
transform:scale(1.2);
}

.cbt-nav{
display:flex;
justify-content:space-between;
margin-top:15px;
}

.btn{
padding:12px;
background:#146c43;
color:#fff;
border:none;
border-radius:6px;
cursor:pointer;
font-weight:600;
}

.btn.secondary{
background:#6b7280;
}

.btn.submit{
background:#dc2626;
}

/* MOBILE FIX */
@media(max-width:600px){

.cbt-question{
font-size:15px;
}

.btn{
width:48%;
}

}
a, button{
transition:all .15s ease;
}

button:active{
transform:scale(0.96);
}

.card:hover{
transform:translateY(-2px);
}
.modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.4);
display:none;

align-items:flex-start;   /* 👈 move upward */
justify-content:center;

padding-top:80px;         /* 👈 controls how far from top */

z-index:2000;
}