:root{
    --bg:#f3f5fb;
    --panel:#ffffff;
    --text:#111827;
    --muted:#6b7280;
    --line:#d9dfeb;
    --line-soft:#e7ebf3;
    --primary:#3f67f4;
    --primary-dark:#2f54de;
    --hero-1:#6f35f6;
    --hero-2:#5d23e8;
    --hero-3:#7f4cf7;
    --success:#4caf50;
    --danger:#d94b45;
    --shadow:0 10px 30px rgba(27, 39, 94, 0.08);
    --shadow-soft:0 15px 50px rgba(56, 54, 130, 0.14);
    --radius:22px;
    --radius-lg:28px;
    --radius-xl:36px;
    --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    font-family:var(--font);
    background:var(--bg);
    color:var(--text);
}

a{
    text-decoration:none;
}

button,
input{
    font:inherit;
}

.login-page{
    min-height:100vh;
    background:#eef1f7;
}

.login-layout{
    min-height:100vh;
    display:grid;
    grid-template-columns:496px 1fr;
}

.login-panel{
    background:#fbfbfc;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.login-panel-inner{
    width:100%;
    max-width:446px;
}

.login-title{
    margin:0 0 10px;
    font-size:33px;
    line-height:1.08;
    font-weight:800;
    letter-spacing:-0.02em;
}

.login-subtitle{
    margin:0 0 28px;
    color:var(--muted);
    font-size:14px;
}

.alert{
    width:100%;
    border-radius:16px;
    padding:12px 14px;
    margin-bottom:16px;
    font-size:14px;
    font-weight:600;
}

.alert-danger{
    background:#fff1f0;
    color:#b42318;
    border:1px solid #f3c1bc;
}

.login-form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-label{
    font-size:15px;
    font-weight:800;
    color:#111827;
}

.input-wrap{
    position:relative;
}

.form-input{
    width:100%;
    height:54px;
    border-radius:18px;
    border:1px solid #cfd8ea;
    background:#fff;
    padding:0 58px 0 18px;
    color:#111827;
    outline:none;
    transition:0.2s ease;
    font-size:16px;
    box-shadow:0 0 0 3px transparent;
}

.form-input::placeholder{
    color:#9ba3b3;
}

.form-input:focus{
    border-color:#8ea7ff;
    box-shadow:0 0 0 4px rgba(74, 110, 255, 0.12);
}

.input-icon-btn{
    position:absolute;
    top:50%;
    right:10px;
    width:34px;
    height:34px;
    border:none;
    background:#f2f4f8;
    border-radius:12px;
    transform:translateY(-50%);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#525d75;
    padding:0;
}

.verify-card{
    border:1px solid #d7dde8;
    background:#f5f6fa;
    border-radius:22px;
    padding:18px;
}

.verify-title{
    margin:0 0 6px;
    font-size:15px;
    font-weight:800;
}

.verify-text{
    margin:0 0 14px;
    color:#656f82;
    font-size:14px;
}

.verify-sequence-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    border-radius:16px;
    background:#ecf0ff;
    color:#3341a4;
    font-size:14px;
    font-weight:700;
    padding:0 16px;
    border:1px solid #d6ddfb;
    margin-bottom:14px;
}

.verify-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.verify-option{
    min-height:60px;
    border-radius:18px;
    border:1px solid #ccd4e2;
    background:#fff;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 16px;
    font-size:15px;
    font-weight:700;
    color:#1c2436;
    cursor:pointer;
    transition:0.2s ease;
}

.verify-option:hover{
    border-color:#9db2ff;
    transform:translateY(-1px);
}

.verify-option.is-selected{
    background:#edf2ff;
    border-color:#7a96ff;
    color:#2440b8;
}

.verify-option:disabled{
    cursor:not-allowed;
    opacity:1;
}

.verify-icon{
    font-size:20px;
    width:20px;
    text-align:center;
    line-height:1;
}

.verify-footer{
    margin-top:12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.verify-status{
    color:#687386;
    font-size:14px;
    min-height:22px;
}

.verify-reset{
    min-width:78px;
    height:40px;
    border-radius:14px;
    border:1px solid #cdd6e5;
    background:#fff;
    color:#1d2433;
    font-weight:700;
    cursor:pointer;
}

.primary-button{
    width:100%;
    height:54px;
    border:none;
    border-radius:18px;
    background:linear-gradient(90deg, #486df4 0%, #3153dc 100%);
    color:#fff;
    font-size:16px;
    font-weight:800;
    letter-spacing:-0.01em;
    cursor:pointer;
    box-shadow:0 16px 34px rgba(62, 94, 241, 0.24);
}

.primary-button:hover{
    background:linear-gradient(90deg, #3d62f2 0%, #294ad5 100%);
}

.forgot-link{
    margin-top:2px;
    display:block;
    text-align:center;
    color:#3f67f4;
    font-size:15px;
    font-weight:700;
}

.hero-panel{
    position:relative;
    overflow:hidden;
    background:radial-gradient(circle at 40% 18%, #8d5dff 0%, #6c30f3 34%, #5923e2 72%, #511fd8 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:48px;
}

.hero-circle{
    position:absolute;
    border-radius:999px;
    background:rgba(255,255,255,0.09);
    pointer-events:none;
}

.hero-circle-top{
    width:500px;
    height:500px;
    top:-148px;
    right:-95px;
}

.hero-circle-bottom{
    width:340px;
    height:340px;
    left:-98px;
    bottom:-102px;
}

.hero-glass-card{
    position:relative;
    z-index:2;
    width:min(620px, 100%);
    border-radius:34px;
    padding:36px 34px;
    background:rgba(255,255,255,0.11);
    border:1px solid rgba(255,255,255,0.17);
    box-shadow:var(--shadow-soft);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}

.hero-title{
    margin:0 0 14px;
    color:#fff;
    font-size:34px;
    line-height:1.08;
    font-weight:800;
    letter-spacing:-0.03em;
    max-width:470px;
}

.hero-text{
    margin:0 0 28px;
    color:rgba(255,255,255,0.92);
    font-size:15px;
    line-height:1.9;
    max-width:500px;
}

.hero-message-card{
    display:flex;
    align-items:center;
    gap:18px;
    width:min(555px, 100%);
    min-height:142px;
    background:#fff;
    border-radius:28px;
    padding:22px;
    box-shadow:0 20px 45px rgba(47, 31, 132, 0.18);
}

.hero-message-avatar{
    flex:0 0 104px;
    width:104px;
    height:104px;
    border-radius:24px;
    background:#e8edf9;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
}

.hero-message-content p{
    margin:0;
    font-size:15px;
    line-height:1.8;
    color:#202737;
    max-width:320px;
}

.dashboard-page{
    min-height:100vh;
    background:#f3f5fb;
}

.simple-dashboard-shell{
    max-width:1100px;
    margin:0 auto;
    padding:32px 20px;
}

.simple-dashboard-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:20px;
}

.simple-dashboard-top h1{
    margin:0 0 6px;
    font-size:34px;
}

.simple-dashboard-top p{
    margin:0;
    color:#6b7280;
}

.simple-dashboard-card{
    background:#fff;
    border:1px solid #e4e8f0;
    border-radius:24px;
    padding:28px;
    box-shadow:var(--shadow);
    font-size:16px;
    font-weight:700;
}

.logout-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:46px;
    padding:0 18px;
    border-radius:16px;
    background:#3f67f4;
    color:#fff;
    font-weight:800;
}

@media (max-width: 1180px){
    .login-layout{
        grid-template-columns:460px 1fr;
    }

    .hero-title{
        font-size:30px;
    }
}

@media (max-width: 980px){
    .login-layout{
        grid-template-columns:1fr;
    }

    .hero-panel{
        min-height:380px;
        order:-1;
        padding:24px;
    }

    .hero-glass-card{
        width:100%;
        max-width:650px;
    }

    .login-panel{
        padding:24px 18px 34px;
    }

    .login-panel-inner{
        max-width:100%;
    }
}

@media (max-width: 640px){
    .login-title{
        font-size:30px;
    }

    .verify-grid{
        grid-template-columns:1fr;
    }

    .verify-footer{
        flex-direction:column;
        align-items:stretch;
    }

    .verify-reset{
        width:100%;
    }

    .hero-title{
        font-size:28px;
    }

    .hero-message-card{
        flex-direction:column;
        align-items:flex-start;
        min-height:auto;
    }

    .hero-message-avatar{
        width:84px;
        height:84px;
        flex-basis:84px;
        font-size:34px;
    }
}

.toast-stack{
    position:fixed;
    top:18px;
    right:18px;
    z-index:9999;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.toast{
    width:360px;
    max-width:calc(100vw - 24px);
    min-height:72px;
    border-radius:20px;
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:14px 16px;
    box-shadow:0 18px 45px rgba(17, 24, 39, 0.16);
    border:1px solid rgba(255,255,255,0.5);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    transform:translateY(-14px);
    opacity:0;
    transition:all .35s ease;
}

.toast.is-visible{
    transform:translateY(0);
    opacity:1;
}

.toast.is-hiding{
    transform:translateY(-10px);
    opacity:0;
}

.toast-error{
    background:rgba(255, 243, 242, 0.96);
    border-color:#f3c7c2;
}

.toast-success{
    background:rgba(240, 253, 244, 0.96);
    border-color:#b7e4c2;
}

.toast-icon{
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:800;
}

.toast-error .toast-icon{
    background:#fee4e2;
    color:#c4322b;
}

.toast-success .toast-icon{
    background:#dcfce7;
    color:#1f8b4c;
}

.toast-content{
    flex:1;
    min-width:0;
}

.toast-title{
    font-size:14px;
    font-weight:800;
    line-height:1.2;
    margin-bottom:4px;
    color:#111827;
}

.toast-text{
    font-size:14px;
    line-height:1.45;
    color:#4b5563;
}

.toast-close{
    border:none;
    background:transparent;
    color:#6b7280;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    padding:0;
    width:24px;
    height:24px;
}

@media (max-width: 640px){
    .toast-stack{
        top:12px;
        right:12px;
        left:12px;
    }

    .toast{
        width:100%;
        max-width:none;
    }
}

.panel-page{
    min-height:100vh;
    background:#f3f5fb;
}

.role-shell{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.role-card{
    width:100%;
    max-width:720px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:28px;
    padding:40px;
    box-shadow:0 20px 45px rgba(17,24,39,.08);
}

.role-card h1{
    margin:0 0 12px;
    font-size:34px;
    line-height:1.1;
}

.role-card p{
    margin:0 0 24px;
    color:#6b7280;
    font-size:16px;
}

.no-scroll{
    overflow:hidden;
}

.panel-body{
    margin:0;
    background:#f4f7fb;
    color:#111827;
}

.panel-layout{
    min-height:100vh;
    display:flex;
}

.sidebar{
    width:290px;
    min-width:290px;
    background:#ffffff;
    border-right:1px solid #e6ebf2;
    display:flex;
    flex-direction:column;
    position:sticky;
    top:0;
    height:100vh;
    z-index:30;
}

.sidebar-top{
    height:84px;
    padding:20px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #eef2f7;
}

.brand-area{
    display:flex;
    align-items:center;
    gap:14px;
    color:#111827;
}

.brand-logo{
    width:46px;
    height:46px;
    border-radius:16px;
    background:linear-gradient(135deg,#4b6bfb 0%, #3153dc 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:16px;
    box-shadow:0 10px 25px rgba(49, 83, 220, 0.22);
}

.brand-text{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.brand-text strong{
    font-size:15px;
    line-height:1.2;
}

.brand-text span{
    font-size:12px;
    color:#7a8394;
}

.sidebar-close{
    display:none;
    width:40px;
    height:40px;
    border:none;
    border-radius:12px;
    background:#f3f6fb;
    font-size:22px;
    cursor:pointer;
}

.sidebar-scroll{
    flex:1;
    overflow:auto;
    padding:18px 14px 22px;
}

.menu-group{
    margin-bottom:20px;
}

.menu-group-title{
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#98a1b2;
    padding:0 10px 10px;
}

.menu-item{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:48px;
    padding:0 14px;
    border-radius:16px;
    color:#334155;
    margin-bottom:6px;
    transition:.2s ease;
    font-size:14px;
    font-weight:700;
}

.menu-item:hover{
    background:#f4f7fc;
    color:#1e293b;
}

.menu-item.active{
    background:linear-gradient(90deg,#4a6cf7 0%, #3859df 100%);
    color:#ffffff;
    box-shadow:0 12px 26px rgba(62, 94, 241, 0.18);
}

.menu-item.danger{
    color:#d24545;
}

.menu-item.danger:hover{
    background:#fff1f1;
    color:#bf2d2d;
}

.menu-icon{
    width:18px;
    min-width:18px;
    text-align:center;
    font-size:16px;
}

.menu-text{
    flex:1;
}

.sidebar-overlay{
    display:none;
}

.main-area{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
}

.topbar{
    height:84px;
    background:#ffffff;
    border-bottom:1px solid #e8edf5;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 24px;
    gap:16px;
    position:sticky;
    top:0;
    z-index:20;
}

.topbar-left,
.topbar-right{
    display:flex;
    align-items:center;
    gap:14px;
}

.mobile-menu-btn{
    display:none;
    width:44px;
    height:44px;
    border:none;
    border-radius:14px;
    background:#f3f6fb;
    font-size:18px;
    cursor:pointer;
}

.topbar-search{
    width:340px;
    max-width:42vw;
}

.topbar-search input{
    width:100%;
    height:46px;
    border:1px solid #dce3ef;
    border-radius:16px;
    background:#f9fbfd;
    padding:0 16px;
    outline:none;
    font-size:14px;
}

.topbar-search input:focus{
    border-color:#93aafc;
    box-shadow:0 0 0 4px rgba(74,108,247,0.10);
}

.topbar-icon-btn{
    width:46px;
    height:46px;
    border:none;
    border-radius:16px;
    background:#f3f6fb;
    cursor:pointer;
    font-size:18px;
}

.topbar-user{
    display:flex;
    align-items:center;
    gap:12px;
    padding-left:4px;
}

.topbar-user-avatar{
    width:46px;
    height:46px;
    border-radius:16px;
    background:linear-gradient(135deg,#4b6bfb 0%, #3153dc 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    box-shadow:0 10px 25px rgba(49, 83, 220, 0.18);
}

.topbar-user-info{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.topbar-user-info strong{
    font-size:14px;
    line-height:1.2;
}

.topbar-user-info span{
    font-size:12px;
    color:#7b8494;
    text-transform:capitalize;
}

.content-area{
    padding:24px;
}

.page-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:20px;
}

.page-head h1{
    margin:0 0 8px;
    font-size:28px;
    line-height:1.15;
}

.page-head p{
    margin:0;
    color:#6b7280;
    font-size:14px;
}

.content-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

.content-card{
    background:#ffffff;
    border:1px solid #e8edf5;
    border-radius:24px;
    padding:22px;
    box-shadow:0 14px 35px rgba(15, 23, 42, 0.04);
}

.content-card-title{
    font-size:16px;
    font-weight:800;
    margin-bottom:10px;
}

.content-card-text{
    font-size:14px;
    line-height:1.7;
    color:#6b7280;
}

@media (max-width: 1024px){
    .sidebar{
        position:fixed;
        left:-100%;
        top:0;
        height:100vh;
        transition:.25s ease;
        box-shadow:0 20px 50px rgba(0,0,0,0.14);
    }

    .sidebar.is-open{
        left:0;
    }

    .sidebar-close{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .sidebar-overlay{
        display:block;
        position:fixed;
        inset:0;
        background:rgba(15, 23, 42, 0.35);
        opacity:0;
        visibility:hidden;
        transition:.25s ease;
        z-index:25;
    }

    .sidebar-overlay.is-visible{
        opacity:1;
        visibility:visible;
    }

    .mobile-menu-btn{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .topbar{
        padding:0 16px;
    }

    .content-area{
        padding:16px;
    }

    .content-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 768px){
    .topbar-search{
        width:100%;
        max-width:none;
    }

    .topbar-user-info{
        display:none;
    }

    .page-head h1{
        font-size:24px;
    }
}

@media (max-width: 640px){
    .topbar{
        height:auto;
        padding:14px;
        flex-direction:column;
        align-items:stretch;
    }

    .topbar-left,
    .topbar-right{
        width:100%;
        justify-content:space-between;
    }

    .sidebar{
        width:88%;
        min-width:88%;
    }

    .content-card{
        padding:18px;
        border-radius:20px;
    }
}
.menu-toggle{
    width:100%;
    border:none;
    background:transparent;
    text-align:left;
    font:inherit;
    cursor:pointer;
}

.menu-toggle .menu-arrow{
    margin-left:auto;
    font-size:12px;
    transition:transform .2s ease;
    opacity:.7;
}

.menu-toggle.active-parent .menu-arrow,
.menu-toggle[aria-expanded="true"] .menu-arrow{
    transform:rotate(180deg);
}

.menu-dropdown{
    display:none;
    padding:6px 0 2px 0;
}

.menu-dropdown.open{
    display:block;
}

.menu-sub-item{
    display:flex;
    align-items:center;
    min-height:40px;
    padding:0 14px 0 44px;
    border-radius:14px;
    color:#526072;
    margin-bottom:4px;
    transition:.2s ease;
    font-size:13px;
    font-weight:700;
}

.menu-sub-item:hover{
    background:#f4f7fc;
    color:#1e293b;
}

.menu-sub-item.active{
    background:#eef3ff;
    color:#3153dc;
}
.menu-toggle{
    width:100%;
    border:none;
    background:transparent;
    text-align:left;
    font:inherit;
    cursor:pointer;
}

.menu-toggle .menu-arrow{
    margin-left:auto;
    font-size:12px;
    transition:transform .2s ease;
    opacity:.7;
}

.menu-toggle.active-parent .menu-arrow,
.menu-toggle[aria-expanded="true"] .menu-arrow{
    transform:rotate(180deg);
}

.menu-dropdown{
    display:none;
    padding:6px 0 2px 0;
}

.menu-dropdown.open{
    display:block;
}

.menu-sub-item{
    display:flex;
    align-items:center;
    min-height:40px;
    padding:0 14px 0 44px;
    border-radius:14px;
    color:#526072;
    margin-bottom:4px;
    transition:.2s ease;
    font-size:13px;
    font-weight:700;
}

.menu-sub-item:hover{
    background:#f4f7fc;
    color:#1e293b;
}

.menu-sub-item.active{
    background:#eef3ff;
    color:#3153dc;
}

.kurum-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

.kurum-card-full{
    grid-column:1 / -1;
}

.admin-form{
    margin-bottom:18px;
}

.admin-form-row{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-bottom:14px;
}

.admin-form-col{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.admin-form-col-check{
    justify-content:flex-end;
}

.admin-label{
    font-size:13px;
    font-weight:800;
    color:#334155;
}

.admin-input{
    width:100%;
    height:46px;
    border:1px solid #dce3ef;
    border-radius:16px;
    background:#f9fbfd;
    padding:0 14px;
    outline:none;
    font-size:14px;
}

.admin-input:focus{
    border-color:#93aafc;
    box-shadow:0 0 0 4px rgba(74,108,247,0.10);
}

.admin-check{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:46px;
    font-size:14px;
    font-weight:700;
    color:#334155;
}

.admin-form-actions{
    display:flex;
    justify-content:flex-end;
}

.admin-btn{
    height:46px;
    border:none;
    border-radius:16px;
    padding:0 18px;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
}

.admin-btn.primary{
    background:linear-gradient(90deg,#4a6cf7 0%, #3859df 100%);
    color:#fff;
    box-shadow:0 12px 26px rgba(62, 94, 241, 0.18);
}

.table-wrap{
    width:100%;
    overflow:auto;
}

.admin-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    min-width:640px;
}

.admin-table thead th{
    text-align:left;
    font-size:12px;
    font-weight:800;
    color:#8a94a6;
    padding:12px 14px;
    border-bottom:1px solid #e8edf5;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.admin-table tbody td{
    padding:14px;
    border-bottom:1px solid #eef2f7;
    font-size:14px;
    color:#1e293b;
    vertical-align:middle;
}

.empty-cell{
    text-align:center;
    color:#94a3b8 !important;
    padding:24px !important;
}

.status-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:74px;
    height:32px;
    padding:0 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.status-badge.success{
    background:#ecfdf3;
    color:#027a48;
}

.status-badge.passive{
    background:#f2f4f7;
    color:#667085;
}

.table-action{
    min-width:74px;
    height:36px;
    border:none;
    border-radius:12px;
    padding:0 12px;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

.table-action.danger{
    background:#fff1f1;
    color:#bf2d2d;
}

@media (max-width: 1200px){
    .admin-form-row{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

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

    .admin-form-row{
        grid-template-columns:1fr;
    }

    .admin-form-actions{
        justify-content:stretch;
    }

    .admin-btn{
        width:100%;
    }
}
.tab-nav{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:18px;
}

.tab-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 16px;
    border-radius:14px;
    background:#ffffff;
    border:1px solid #e5ebf4;
    color:#526072;
    font-size:14px;
    font-weight:800;
    transition:.2s ease;
}

.tab-link:hover{
    background:#f4f7fc;
    color:#1e293b;
}

.tab-link.active{
    background:linear-gradient(90deg,#4a6cf7 0%, #3859df 100%);
    color:#fff;
    border-color:transparent;
    box-shadow:0 12px 26px rgba(62, 94, 241, 0.18);
}

.admin-form{
    margin-bottom:18px;
}

.admin-form-row{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-bottom:14px;
}

.admin-form-row.compact{
    grid-template-columns:2fr 2fr 1fr 1fr;
}

.admin-form-col{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.admin-form-col-check{
    justify-content:flex-end;
}

.admin-form-col-button{
    justify-content:flex-end;
}

.admin-form-col-button-wide{
    grid-column:auto;
}

.admin-label{
    font-size:13px;
    font-weight:800;
    color:#334155;
}

.admin-input{
    width:100%;
    height:46px;
    border:1px solid #dce3ef;
    border-radius:16px;
    background:#f9fbfd;
    padding:0 14px;
    outline:none;
    font-size:14px;
}

.admin-input:focus{
    border-color:#93aafc;
    box-shadow:0 0 0 4px rgba(74,108,247,0.10);
}

.admin-check{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:46px;
    font-size:14px;
    font-weight:700;
    color:#334155;
}

.admin-btn{
    height:46px;
    border:none;
    border-radius:16px;
    padding:0 18px;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    width:100%;
}

.admin-btn.primary{
    background:linear-gradient(90deg,#4a6cf7 0%, #3859df 100%);
    color:#fff;
    box-shadow:0 12px 26px rgba(62, 94, 241, 0.18);
}

.table-wrap{
    width:100%;
    overflow:auto;
}

.admin-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    min-width:760px;
}

.admin-table thead th{
    text-align:left;
    font-size:12px;
    font-weight:800;
    color:#8a94a6;
    padding:12px 14px;
    border-bottom:1px solid #e8edf5;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.admin-table tbody td{
    padding:14px;
    border-bottom:1px solid #eef2f7;
    font-size:14px;
    color:#1e293b;
    vertical-align:middle;
}

.empty-cell{
    text-align:center;
    color:#94a3b8 !important;
    padding:24px !important;
}

.status-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:74px;
    height:32px;
    padding:0 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.status-badge.success{
    background:#ecfdf3;
    color:#027a48;
}

.status-badge.passive{
    background:#f2f4f7;
    color:#667085;
}

.table-action{
    min-width:74px;
    height:36px;
    border:none;
    border-radius:12px;
    padding:0 12px;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

.table-action.danger{
    background:#fff1f1;
    color:#bf2d2d;
}

@media (max-width: 1200px){
    .admin-form-row,
    .admin-form-row.compact{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 768px){
    .admin-form-row,
    .admin-form-row.compact{
        grid-template-columns:1fr;
    }

    .tab-nav{
        gap:8px;
    }

    .tab-link{
        width:100%;
    }
}
.page-head-actions{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}

.page-head-btns{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.admin-btn-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}

.admin-btn.secondary{
    background:#f3f6fb;
    color:#334155;
    box-shadow:none;
}

.list-filter-bar{
    display:flex;
    gap:12px;
    align-items:center;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.list-filter-search{
    flex:1;
    min-width:280px;
}

.list-filter-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.student-list-table{
    min-width:1100px;
}

.list-main-text{
    font-size:14px;
    font-weight:800;
    color:#1e293b;
}

.list-sub-text{
    font-size:12px;
    color:#8a94a6;
    margin-top:4px;
}

.table-action-row{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.table-action.edit-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:74px;
    height:36px;
    border-radius:12px;
    padding:0 12px;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
    background:#eef3ff;
    color:#3153dc;
}

.status-badge.warning{
    background:#fffaeb;
    color:#b54708;
}

.status-badge.danger{
    background:#fff1f1;
    color:#bf2d2d;
}

@media (max-width: 768px){
    .page-head-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .page-head-btns{
        width:100%;
    }

    .page-head-btns .admin-btn-link{
        width:100%;
    }

    .list-filter-actions{
        width:100%;
    }

    .list-filter-actions .admin-btn,
    .list-filter-actions .admin-btn-link{
        flex:1;
    }
}
.student-form-page{
    display:flex;
    flex-direction:column;
    gap:20px;
}

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

.student-form-col{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.student-form-col-2{
    grid-column:span 2;
}

.admin-textarea{
    width:100%;
    min-height:110px;
    border:1px solid #dce3ef;
    border-radius:16px;
    background:#f9fbfd;
    padding:12px 14px;
    outline:none;
    font-size:14px;
    resize:vertical;
}

.admin-textarea:focus{
    border-color:#93aafc;
    box-shadow:0 0 0 4px rgba(74,108,247,0.10);
}

.admin-input-file{
    width:100%;
    min-height:46px;
    border:1px dashed #cfd8ea;
    border-radius:16px;
    background:#f9fbfd;
    padding:10px 12px;
    font-size:14px;
}

.guardian-block{
    padding-top:8px;
    margin-top:8px;
    border-top:1px solid #eef2f7;
}

.guardian-block:first-of-type{
    border-top:none;
    margin-top:0;
    padding-top:0;
}

.guardian-block-title{
    font-size:15px;
    font-weight:800;
    color:#1e293b;
    margin-bottom:14px;
}

.selection-status-box{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    min-height:24px;
    margin-top:2px;
}

.selection-status-item{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.selection-status-item.status-green{
    background:#ecfdf3;
    color:#027a48;
}

.selection-status-item.status-red{
    background:#fff1f1;
    color:#bf2d2d;
}

@media (max-width: 1200px){
    .student-form-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

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

    .student-form-col-2{
        grid-column:span 1;
    }
}

.form-control,
.form-select {
    height:46px;
    line-height:46px;
    padding:0 14px;
    display:flex;
    align-items:center;
}

.form-control::placeholder{
    line-height:46px;
}
.form-control, .form-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.form-control::placeholder {
    color: #aaa;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.field-span-2 {
    grid-column: span 2;
}

.tab-panel {
    display: none;
}

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

.tab-btn {
    padding: 10px;
    border: none;
    background: #eee;
    border-radius: 8px;
    cursor: pointer;
}

.tab-btn.active {
    background: #4f46e5;
    color: #fff;
}

.parent-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.parent-modal-box {
    background: #fff;
    width: 500px;
    max-height: 600px;
    overflow: auto;
    border-radius: 12px;
    padding: 20px;
}

.parent-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.parent-item.active {
    background: #e0f2fe;
}

.selected-parent {
    background: #4ade80;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 5px;
}
.page-head-actions{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}

.page-head-btns{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.admin-btn-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}

.admin-btn.secondary{
    background:#f3f6fb;
    color:#334155;
    box-shadow:none;
}

.list-filter-bar{
    display:flex;
    gap:12px;
    align-items:center;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.list-filter-search{
    flex:1;
    min-width:280px;
}

.list-filter-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.student-list-table{
    min-width:1100px;
}

.list-main-text{
    font-size:14px;
    font-weight:800;
    color:#1e293b;
}

.list-sub-text{
    font-size:12px;
    color:#8a94a6;
    margin-top:4px;
}

.table-action-row{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.table-action.edit-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:74px;
    height:36px;
    border-radius:12px;
    padding:0 12px;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
    background:#eef3ff;
    color:#3153dc;
}

.status-badge.warning{
    background:#fffaeb;
    color:#b54708;
}

.status-badge.danger{
    background:#fff1f1;
    color:#bf2d2d;
}

@media (max-width: 768px){
    .page-head-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .page-head-btns{
        width:100%;
    }

    .page-head-btns .admin-btn-link{
        width:100%;
    }

    .list-filter-actions{
        width:100%;
    }

    .list-filter-actions .admin-btn,
    .list-filter-actions .admin-btn-link{
        flex:1;
    }
}
.page-form-page{display:flex;flex-direction:column;gap:16px}
.page-head-card,.page-form-card,.preview-card,.parent-card,.info-banner{background:#fff;border:1px solid #e5ecf4;border-radius:22px;box-shadow:0 10px 30px rgba(15,23,42,.05)}
.page-head-card{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.page-kicker{font-size:11px;font-weight:800;letter-spacing:.08em;color:#6b7280;margin-bottom:6px}
.page-head-card h2{margin:0;font-size:22px;font-weight:800;color:#111827}
.page-head-card p{margin:6px 0 0;font-size:13px;color:#6b7280}
.page-head-actions{display:flex;gap:10px;flex-wrap:wrap}
.page-form-card{padding:18px}
.info-banner{padding:14px 16px;display:flex;flex-direction:column;gap:4px;background:#f8fbff}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field-span-2{grid-column:span 2}
.field-span-full{grid-column:1/-1}
.form-control,.form-select{
    width:100%;
    min-height:46px;
    height:46px;
    padding:0 14px;
    border:1px solid #dbe4f0;
    border-radius:14px;
    background:#fff;
    font-size:14px;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
}
.form-select{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 14px center;
    padding-right:42px;
}
.form-control:focus,.form-select:focus{border-color:#2f6cff;box-shadow:0 0 0 4px rgba(47,108,255,.10);outline:none}
.form-textarea{min-height:120px;height:auto;padding:14px;resize:vertical}
.form-file{
    display:flex;
    align-items:center;
    padding:10px 14px;
    height:auto;
    min-height:46px;
    line-height:1.4;
}
.form-file::file-selector-button{
    margin-right:12px;
    border:none;
    background:#eef3ff;
    color:#3153dc;
    font-weight:700;
    border-radius:10px;
    padding:8px 12px;
    cursor:pointer;
}
.form-footer{margin-top:18px;padding-top:18px;border-top:1px solid #edf2f7;display:flex;justify-content:flex-end;gap:10px}
.tab-nav-wrap{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.tab-btn{border:1px solid #dbe4f0;background:#f8fafc;color:#374151;min-height:44px;padding:0 14px;border-radius:14px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:10px;transition:.18s ease;cursor:pointer}
.tab-btn.active{background:#2f6cff;border-color:#2f6cff;color:#fff;box-shadow:0 8px 18px rgba(47,108,255,.20)}
.tab-step{width:22px;height:22px;border-radius:999px;background:rgba(255,255,255,.18);display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800}
.tab-panel{display:none}
.tab-panel.active{display:block}
.section-head{margin-bottom:14px}
.section-head h3{margin:0;font-size:16px;font-weight:800;color:#111827}
.section-head p{margin:4px 0 0;font-size:12px;color:#6b7280}
.req{color:#dc2626}
.field-help{font-size:12px;color:#64748b}
.switch-row{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 14px;border:1px solid #dbe4f0;border-radius:14px;background:#fff}
.conditional{display:none}
.conditional.active{display:flex}
.parent-toolbar{display:flex;justify-content:flex-end;margin-bottom:14px}
.parent-repeater{display:flex;flex-direction:column;gap:14px}
.parent-card{padding:16px}
.parent-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.parent-card-head h4{margin:0;font-size:15px;font-weight:800;color:#111827}
.parent-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.status-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800}
.status-chip.available{background:#e8f8ef;color:#16a34a}
.status-chip.full{background:#fee2e2;color:#dc2626}
.ui-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:14px;border:none;text-decoration:none;font-size:13px;font-weight:800;cursor:pointer}
.ui-btn-default{background:#f8fafc;color:#374151;border:1px solid #dbe4f0}
.ui-btn-create{background:#2f6cff;color:#fff;box-shadow:0 8px 18px rgba(47,108,255,.20)}
.ui-btn-danger{background:#fff1f1;color:#bf2d2d;border:1px solid #ffd6d6}
@media(max-width:991px){.form-grid,.parent-grid{grid-template-columns:1fr}}
@media (max-width:768px){
    .page-head-card{flex-direction:column;align-items:flex-start}
    .tab-nav-wrap{display:grid;grid-template-columns:1fr 1fr}
    .tab-btn{justify-content:center}
    .form-footer{flex-direction:column-reverse}
    .form-footer .ui-btn{width:100%}
}
@media (max-width:480px){.tab-nav-wrap{grid-template-columns:1fr}}
.parent-modal {
    display: none;
}

.parent-modal.show {
    display: flex;
}
