/* ================================
   GLOBAL RESET
================================ */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family: Inter, system-ui, -apple-system, sans-serif;
background:#f1f5f9;
color:#1e293b;
}

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

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

.main{
flex:1;
display:flex;
flex-direction:column;
}

.content{
padding:30px;
flex:1;
}

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

.sidebar{
width:260px;
background:#0f172a;
color:#cbd5f1;
display:flex;
flex-direction:column;
padding:20px 0;
}

.logo{
display:flex;
align-items:center;
gap:10px;
padding:0 24px 24px;
font-size:18px;
font-weight:600;
border-bottom:1px solid rgba(255,255,255,0.06);
}

/* CHANGED: benchmap branding */
.sb-brand{
padding:18px 16px 16px;
border-bottom:0.5px solid rgba(255,255,255,0.08);
display:flex;
align-items:center;
gap:10px;
text-decoration:none;
}

.sb-logo-mark{
width:36px;
height:36px;
flex-shrink:0;
display:flex;
align-items:center;
justify-content:center;
}

.sb-logo-img{
width:36px;
height:36px;
object-fit:contain;
filter:brightness(0) invert(1);
}

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

.sb-brand-name{
font-size:17px;
font-weight:700;
color:#ffffff;
letter-spacing:-0.3px;
line-height:1;
}

.sb-brand-tag{
font-size:10px;
color:rgba(255,255,255,0.65);
letter-spacing:0.14em;
text-transform:uppercase;
}

.menu-section{
margin-top:24px;
}

.menu-title{
font-size:11px;
letter-spacing:1px;
color:#64748b;
padding:0 24px;
margin-bottom:10px;
}

.menu-item{
display:flex;
align-items:center;
gap:10px;
padding:10px 24px;
text-decoration:none;
color:#cbd5f1;
border-radius:8px;
transition:all .2s ease;
}

.menu-item i{
width:18px;
height:18px;
}

.menu-item:hover{
background:rgba(255,255,255,0.06);
color:white;
}

.menu-item.active{
background:#1e293b;
color:white;
}

.menu-item.profile{
margin-top:10px;
background:linear-gradient(135deg,#6366f1,#8b5cf6);
color:white;
}

/* sidebar user */

.sidebar-user{
display:flex;
align-items:center;
gap:12px;
background:#1e293b;
margin:20px;
padding:14px;
border-radius:12px;
}

.user-avatar{
width:38px;
height:38px;
border-radius:50%;
background:#6366f1;
display:flex;
align-items:center;
justify-content:center;
font-weight:600;
color:white;
}

.user-role{
font-size:12px;
color:#94a3b8;
}
/* SIDEBAR HOVER ANIMATION */

.menu-item{
position:relative;
}

.menu-item::before{
content:"";
position:absolute;
left:0;
top:50%;
transform:translateY(-50%);
width:0;
height:60%;
background:#6366f1;
border-radius:0 6px 6px 0;
transition:0.2s;
}

.menu-item:hover::before{
width:4px;
}

.menu-item.active::before{
width:4px;
}
/* ================================
   HEADER
================================ */

.header{
height:60px;
background:white;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 30px;
border-bottom:1px solid #e2e8f0;
}

/* CHANGED: benchmap branding */
.topbar-page-title{
font-size:14px;
font-weight:500;
color:#111;
}

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



.generate-card,
.viewer-card,
.upload-section,
.info-card{

background:white;
padding:24px;
border-radius:14px;
box-shadow:0 6px 20px rgba(0,0,0,0.06);

}
/* DASHBOARD CARDS */

.dashboard-card{
background:white;
padding:24px;
border-radius:16px;
box-shadow:0 8px 24px rgba(0,0,0,0.06);
transition:all 0.25s ease;
position:relative;
overflow:hidden;
}

/* ================================
   AUTH PAGES
================================ */

.auth-page{
font-family:"Trebuchet MS","Lucida Sans",sans-serif;
min-height:100vh;
background:
linear-gradient(135deg,#0f172a 0%,#111827 45%,#0b1222 100%);
color:#e2e8f0;
}

.auth-shell{
min-height:100vh;
display:grid;
grid-template-columns: 1.1fr 0.9fr;
gap:48px;
align-items:center;
padding:48px 10vw;
}

.auth-info{
max-width:520px;
}

.auth-info h1{
font-family:"Georgia","Times New Roman",serif;
font-size:36px;
font-weight:600;
line-height:1.15;
margin-bottom:14px;
color:#f8fafc;
}

.auth-info p{
font-size:15px;
color:#cbd5f1;
line-height:1.7;
margin-bottom:20px;
}

.auth-highlight{
display:inline-flex;
align-items:center;
gap:6px;
padding:6px 12px;
border-radius:999px;
background:rgba(99,102,241,0.18);
border:1px solid rgba(129,140,248,0.45);
color:#e0e7ff;
font-size:12px;
font-weight:700;
letter-spacing:0.02em;
margin-bottom:14px;
}

.auth-card{
width:100%;
max-width:420px;
background:#ffffff;
color:#0f172a;
border-radius:18px;
padding:32px;
box-shadow:0 24px 60px rgba(8,15,30,0.4);
border:1px solid rgba(255,255,255,0.08);
}

.auth-card h2{
font-size:22px;
font-weight:700;
margin-bottom:6px;
color:#0f172a;
}

.auth-subtitle{
font-size:13px;
color:#64748b;
margin-bottom:22px;
}

.auth-card label{
display:block;
font-size:12px;
font-weight:700;
color:#475569;
margin-bottom:6px;
}

.auth-card input{
width:100%;
padding:12px 14px;
border-radius:12px;
border:1px solid #e2e8f0;
background:#f8fafc;
font-size:14px;
margin-bottom:16px;
color:#0f172a;
transition:border-color .15s, box-shadow .15s, background .15s;
}

.auth-card input:focus{
outline:none;
border-color:#6366f1;
box-shadow:0 0 0 4px rgba(99,102,241,0.18);
background:#fff;
}

.auth-options{
display:flex;
justify-content:space-between;
align-items:center;
font-size:12px;
color:#64748b;
margin-bottom:18px;
}

.auth-options .forgot{
color:#4f46e5;
text-decoration:none;
font-weight:700;
}

.auth-options .forgot:hover{
text-decoration:underline;
}

.btn-primary{
background:#4f46e5;
color:#fff;
border:none;
padding:12px 18px;
border-radius:12px;
font-size:14px;
font-weight:700;
cursor:pointer;
transition:background .2s ease, transform .15s ease;
}

.btn-primary:hover{
background:#4338ca;
transform:translateY(-1px);
}

.full-width{
width:100%;
}

.auth-footer{
font-size:12px;
color:#64748b;
margin-top:18px;
text-align:center;
}

.auth-footer a{
color:#4f46e5;
text-decoration:none;
font-weight:700;
}

.auth-footer a:hover{
text-decoration:underline;
}

.auth-error{
color:#dc2626;
font-size:12px;
margin-top:10px;
text-align:center;
}

/* CHANGED: benchmap branding */
.auth-brand{
display:flex;
flex-direction:column;
align-items:center;
gap:8px;
margin-bottom:24px;
}

.auth-logo-wrap{
width:56px;
height:56px;
display:flex;
align-items:center;
justify-content:center;
background:#1a1f2e;
border-radius:14px;
padding:10px;
}

.auth-logo-img{
width:36px;
height:36px;
object-fit:contain;
filter:brightness(0) invert(1);
}

.auth-brand-name{
font-size:22px;
font-weight:700;
color:#1a1f2e;
letter-spacing:-0.5px;
margin:0;
}

.auth-brand-sub{
font-size:12px;
color:#9b9b9b;
margin:0;
text-align:center;
}

@media (max-width: 1024px){
  .auth-shell{
    grid-template-columns:1fr;
    text-align:center;
    padding:40px 24px;
  }

  .auth-info{
    max-width:520px;
    margin:0 auto;
  }

  .auth-card{
    margin:0 auto;
  }
}

.dashboard-card:hover{
transform:translateY(-4px);
box-shadow:0 14px 34px rgba(0,0,0,0.1);
}

.dashboard-card h3{
font-size:13px;
color:#64748b;
margin-bottom:10px;
}

.card-number{
font-size:30px;
font-weight:700;
color:#1e293b;
}

.card-status{
font-size:18px;
font-weight:600;
}

.dashboard-card::before{
content:"";
position:absolute;
top:0;
left:0;
width:4px;
height:100%;
background:linear-gradient(180deg,#6366f1,#8b5cf6);
}

.card-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin-top:20px;
}

.dashboard-card h3{
font-size:14px;
color:#64748b;
margin-bottom:10px;
}

.card-number{
font-size:30px;
font-weight:700;
}

.card-status{
font-size:18px;
font-weight:600;
}
/* CONFIG PAGE */

.config-container{
max-width:1000px;
margin:30px auto;
display:flex;
flex-direction:column;
gap:24px;
}

/* config cards */

.config-card{
background:white;
padding:26px;
border-radius:16px;
box-shadow:0 10px 30px rgba(0,0,0,0.06);
display:flex;
flex-direction:column;
gap:18px;
}

/* section titles */

.config-card h3{
font-size:18px;
font-weight:600;
color:#1e293b;
}

/* form row layout */

.form-row{
display:flex;
gap:16px;
flex-wrap:wrap;
align-items:center;
}

/* hall list */

#hall-list{
display:flex;
flex-direction:column;
gap:16px;
}

/* hall item blocks */

.hall-item{
border:1px solid #e2e8f0;
background:#f8fafc;
padding:16px;
border-radius:12px;
box-shadow:0 6px 16px rgba(15,23,42,0.06);
display:flex;
flex-direction:column;
gap:12px;
}

.hall-item-title{
font-size:14px;
font-weight:600;
color:#1e293b;
padding-bottom:6px;
border-bottom:1px solid #e2e8f0;
margin-bottom:6px;
}

/* labels */

.config-card label{
font-size:13px;
color:#475569;
font-weight:500;
}

/* inputs */

.config-card input,
.config-card select{
padding:10px 12px;
border-radius:8px;
border:1px solid #d1d5db;
font-size:14px;
min-width:160px;
background:white;
}

/* capacity text */

.capacity-text{
font-size:14px;
color:#475569;
margin-top:6px;
}

/* button group */

.button-group{
display:flex;
gap:12px;
margin-top:10px;
}
/* ================================
   BUTTONS
================================ */

.btn,
.btn-primary,
.btn-secondary{
border:none;
padding:10px 18px;
border-radius:8px;
font-size:14px;
cursor:pointer;
transition:.2s;
}

.btn-primary{
background:linear-gradient(135deg,#2563eb,#1d4ed8);
color:white;
}

.btn-primary:hover{
transform:translateY(-1px);
box-shadow:0 6px 14px rgba(37,99,235,0.3);
}

.btn-secondary{
background:#f1f5f9;
border:1px solid #e2e8f0;
}

.btn-secondary:hover{
background:#e2e8f0;
}

/* ================================
   TABLES
================================ */

table{
width:100%;
border-collapse:collapse;
margin-top:15px;
background:white;
border-radius:10px;
overflow:hidden;
}

th,td{
padding:12px;
border-bottom:1px solid #e2e8f0;
text-align:left;
}

th{
background:#f8fafc;
font-weight:600;
}

.invalid-row{
background:#fee2e2;
}

.valid{
color:#16a34a;
}

.invalid{
color:#dc2626;
}

/* ================================
   UPLOAD BOX
================================ */

/* UPLOAD BOX MODERN */

.upload-section{
max-width:750px;
margin:30px auto;
}

.upload-box{
border:2px dashed #cbd5e1;
border-radius:14px;
padding:50px 20px;
text-align:center;
background:#f8fafc;
transition:all .25s ease;
cursor:pointer;
}

.upload-box:hover{
background:#eef2ff;
border-color:#6366f1;
}

.upload-box input{
margin-bottom:10px;
}

.upload-box p{
font-size:14px;
color:#64748b;
}

.upload-actions{
display:flex;
gap:10px;
margin-top:20px;
justify-content:center;
}
/* =========================
   GENERATE SEATING PAGE
========================= */

.generate-card{
max-width:720px;
margin:30px auto;
padding:30px;
border-radius:16px;
background:white;
box-shadow:0 10px 30px rgba(0,0,0,0.06);
display:flex;
flex-direction:column;
gap:18px;
}

/* form labels */

.generate-card label{
font-size:14px;
font-weight:500;
color:#334155;
margin-bottom:4px;
}

/* dropdown */

.generate-card select{
width:260px;
padding:10px 12px;
border-radius:8px;
border:1px solid #d1d5db;
font-size:14px;
background:white;
}

/* exam row */

.exam-row{
display:flex;
align-items:center;
gap:12px;
flex-wrap:wrap;
}

/* hall checkbox list */

.hall-list{
display:flex;
gap:18px;
margin-top:6px;
flex-wrap:wrap;
}

/* checkbox style */

.hall-list label{
display:flex;
align-items:center;
gap:6px;
font-size:14px;
cursor:pointer;
}

.hall-list input{
accent-color:#2563eb;
}

/* summary info */

.summary-box{
margin-top:10px;
padding:14px;
background:#f1f5f9;
border-radius:10px;
font-size:14px;
display:flex;
flex-direction:column;
gap:6px;
}

/* button alignment */

.generate-btn{
margin-top:10px;
width:220px;
font-weight:600;
}
/* ================================
   SEATING GRID
================================ */
/* SUBJECT COLORS */

.subject-color-1{ background:#bfdbfe; color:#1e3a8a; }
.subject-color-2{ background:#fde68a; color:#92400e; }
.subject-color-3{ background:#bbf7d0; color:#065f46; }
.subject-color-4{ background:#fbcfe8; color:#831843; }
.subject-color-5{ background:#ddd6fe; color:#4c1d95; }
.subject-color-6{ background:#fed7aa; color:#7c2d12; }
/* SEATING GRID MODERN */

.viewer-card{
max-width:1100px;
margin:auto;
}

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

.viewer-actions{
display:flex;
gap:10px;
}

.seating-grid{

display:grid;

grid-template-columns:repeat(auto-fill,110px);

gap:16px;

padding:25px;

background:#f8fafc;

border-radius:14px;

}

/* seat card */

.seat{

padding:16px;

border-radius:10px;

font-size:12px;

font-weight:600;

text-align:center;

transition:all .2s ease;

cursor:pointer;

box-shadow:0 3px 10px rgba(0,0,0,0.05);

}

/* hover effect */

.seat:hover{

transform:translateY(-3px);

box-shadow:0 8px 18px rgba(0,0,0,0.12);

}

/* empty seat */

.empty{

background:#e2e8f0;

color:#64748b;

}

/* ================================
   LEGEND
================================ */

.legend{
display:flex;
gap:18px;
margin:15px 0;
}

.legend-item{
display:flex;
align-items:center;
gap:6px;
font-size:13px;
}

.legend-color{
width:14px;
height:14px;
border-radius:3px;
}

.legend-color.math{background:#93c5fd;}
.legend-color.physics{background:#fde68a;}
.legend-color.chem{background:#bbf7d0;}

/* ================================
   PROFILE PAGE
================================ */

.profile-header{
max-width:800px;
margin:auto;
background:linear-gradient(135deg,#6366f1,#8b5cf6);
padding:40px;
border-radius:16px;
text-align:center;
color:white;
box-shadow:0 12px 35px rgba(0,0,0,0.2);
}

/* avatar */

.avatar{
width:90px;
height:90px;
margin:auto;
border-radius:50%;
background:white;
border:4px solid #6366f1;
}

/* details section */

.profile-details{
display:flex;
gap:30px;
justify-content:center;
margin-top:40px;
}

/* info cards */

.info-card{
width:340px;
}

/* ================================
   ALERTS
================================ */

.alert{
padding:14px;
border-radius:8px;
margin-top:10px;
}

.warning{
background:#fef3c7;
color:#92400e;
}

.error{
background:#fee2e2;
color:#991b1b;
}

.success{
background:#dcfce7;
color:#166534;
}

/* ================================
   TOAST
================================ */

.toast{
position:fixed;
bottom:20px;
right:20px;
background:#1e293b;
color:white;
padding:12px 18px;
border-radius:8px;
opacity:0;
transition:.3s;
}

.toast.show{
opacity:1;
}
