/* ============================================================
   SafeZone – THPT Trieu Phong – Main Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --primary:       #1565C0;
  --primary-dark:  #0D47A1;
  --primary-light: #E3F2FD;
  --primary-mid:   #1976D2;
  --accent:        #FF6F00;
  --success:       #2E7D32;
  --success-light: #E8F5E9;
  --warning:       #F57F17;
  --warning-light: #FFFDE7;
  --danger:        #C62828;
  --danger-light:  #FFEBEE;
  --text-dark:     #0D1B2A;
  --text-mid:      #4A5568;
  --text-light:    #8A97A8;
  --bg:            #F5F7FA;
  --border:        #E2E8F0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --sidebar-w:     260px;
  --font:          'Be Vietnam Pro', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text-dark); line-height: 1.6; font-size: 14px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
h1,h2,h3 { line-height: 1.3; }

/* ── Alerts ────────────────────────────────────────────────── */
.alert { padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: var(--success-light); color: var(--success);  border-left: 4px solid var(--success); }
.alert-error   { background: var(--danger-light);  color: var(--danger);   border-left: 4px solid var(--danger); }
.alert-warning { background: var(--warning-light); color: var(--warning);  border-left: 4px solid var(--warning); }
.alert-info    { background: var(--primary-light); color: var(--primary);  border-left: 4px solid var(--primary); }

/* ── Badges ────────────────────────────────────────────────── */
.badge           { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-new       { background: #E3F2FD; color: #1565C0; }
.badge-processing{ background: #FFF3E0; color: #E65100; }
.badge-resolved  { background: var(--success-light); color: var(--success); }
.badge-grade     { background: var(--primary); color: white; }
.badge-type      { background: #F3E5F5; color: #6A1B9A; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn         { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px; border: none; transition: all .2s; cursor: pointer; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(21,101,192,.3); }
.btn-outline  { background: white; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger   { background: var(--danger); color: white; }
.btn-danger:hover { background: #B71C1C; }
.btn-sm  { padding: 6px 14px; font-size: 12.5px; }
.btn-lg  { padding: 14px 28px; font-size: 15px; }
.w-full  { width: 100%; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 7px; color: var(--text-dark); }
.form-label .required { color: var(--danger); margin-left: 3px; }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-dark); background: white; transition: border-color .2s, box-shadow .2s; outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,.1); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238A97A8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card        { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border); }
.card-header { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-body   { padding: 24px; }
.card-title  { font-size: 15px; font-weight: 700; color: var(--text-dark); }

/* ── Stat Cards ────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform .2s,box-shadow .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::before { content:''; position: absolute; top:0; left:0; right:0; height: 3px; }
.stat-card.total::before     { background: var(--primary); }
.stat-card.new::before       { background: #1565C0; }
.stat-card.processing::before{ background: var(--accent); }
.stat-card.resolved::before  { background: var(--success); }
.stat-icon-label { font-size: 9px; font-weight: 800; letter-spacing: 2px; color: var(--text-light); margin-bottom: 12px; text-transform: uppercase; }
.stat-number { font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-card.total .stat-number      { color: var(--primary); }
.stat-card.new .stat-number        { color: #1565C0; }
.stat-card.processing .stat-number { color: var(--accent); }
.stat-card.resolved .stat-number   { color: var(--success); }
.stat-label { font-size: 13px; color: var(--text-mid); font-weight: 500; }

/* ── Table ─────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { background: #F8FAFD; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-light); padding: 12px 16px; border-bottom: 2px solid var(--border); text-align: left; white-space: nowrap; }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text-dark); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #FAFBFF; }
.report-content-preview { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-mid); }

/* ── Sidebar Layout ────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--primary-dark); position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100; display: flex; flex-direction: column; }
.sidebar-brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-logo  { width: 36px; height: 36px; background: rgba(255,255,255,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; color: white; margin-bottom: 10px; }
.brand-name    { color: white; font-size: 17px; font-weight: 800; }
.brand-sub     { color: rgba(255,255,255,.5); font-size: 11px; margin-top: 2px; }
.sidebar-user  { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-user .user-name { color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; }
.sidebar-user .user-role { color: rgba(255,255,255,.45); font-size: 11px; }
.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-section { padding: 0 20px; }
.sidebar-section-title { color: rgba(255,255,255,.35); font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 10px 0 5px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 9px 20px; color: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 500; transition: all .15s; position: relative; }
.sidebar-link .icon { font-size: 10px; width: 18px; text-align: center; color: rgba(255,255,255,.35); }
.sidebar-link:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar-link.active { background: rgba(255,255,255,.12); color: white; }
.sidebar-link.active::before { content:''; position: absolute; left:0; top:5px; bottom:5px; width:3px; background:white; border-radius: 0 3px 3px 0; }
.sidebar-footer { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer a { color: rgba(255,255,255,.45); font-size: 12.5px; transition: color .15s; }
.sidebar-footer a:hover { color: white; }

/* ── Main Content ──────────────────────────────────────────── */
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { background: white; border-bottom: 1px solid var(--border); padding: 0 32px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.topbar-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.page-content { padding: 28px 32px; flex: 1; }
.page-title   { font-size: 21px; font-weight: 800; color: var(--text-dark); }
.page-sub     { font-size: 13.5px; color: var(--text-light); margin-top: 4px; }
.content-header { margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; }

/* ── Filters ───────────────────────────────────────────────── */
.filters { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.filter-group label { font-size: 10.5px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.filter-group select, .filter-group input { padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 13px; font-family: var(--font); outline: none; color: var(--text-dark); background: white; }
.filter-group select:focus, .filter-group input:focus { border-color: var(--primary); }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: var(--radius); width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(16px); transition: transform .2s; }
.modal-overlay.show .modal { transform: translateY(0); }
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title  { font-size: 15px; font-weight: 700; }
.modal-close  { background: none; border: none; font-size: 22px; color: var(--text-light); cursor: pointer; line-height: 1; padding: 2px 6px; }
.modal-close:hover { color: var(--text-dark); }
.modal-body   { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Chart bars ────────────────────────────────────────────── */
.chart-bar-item { margin-bottom: 14px; }
.chart-bar-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.chart-bar-track { background: var(--border); border-radius: 4px; height: 7px; }
.chart-bar-fill  { background: var(--primary); border-radius: 4px; height: 7px; transition: width .8s ease; }

/* ── Status dots ───────────────────────────────────────────── */
.status-dot      { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot-new         { background: #1565C0; }
.dot-processing  { background: var(--accent); }
.dot-resolved    { background: var(--success); }

/* ── Detail page ───────────────────────────────────────────── */
.detail-grid    { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.info-list .info-row { display: flex; padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-list .info-row:last-child { border-bottom: none; }
.info-list .info-label { color: var(--text-light); font-size: 11.5px; font-weight: 700; width: 130px; flex-shrink: 0; text-transform: uppercase; letter-spacing: .3px; }
.info-list .info-val   { color: var(--text-dark); font-size: 13.5px; font-weight: 500; }
.content-box { background: var(--bg); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14px; line-height: 1.8; color: var(--text-dark); white-space: pre-wrap; border: 1px solid var(--border); }

/* ── Attachments ───────────────────────────────────────────── */
.attachment-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 12px; }
.attachment-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.attachment-item img { width: 100%; height: 100px; object-fit: cover; }
.att-info  { padding: 8px 10px; }
.att-name  { font-size: 11px; color: var(--text-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-link  { font-size: 11px; color: var(--primary); font-weight: 600; }
.att-file  { background: var(--bg); display: flex; align-items: center; justify-content: center; height: 100px; font-size: 28px; color: var(--text-light); }

/* ── Upload ────────────────────────────────────────────────── */
.upload-area { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 28px 20px; text-align: center; transition: all .2s; cursor: pointer; }
.upload-area:hover, .upload-area.drag { border-color: var(--primary); background: var(--primary-light); }
.upload-area-text { font-size: 14px; color: var(--text-dark); margin-bottom: 4px; }
.file-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.file-tag  { display: flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.file-tag .remove { cursor: pointer; font-size: 16px; line-height: 1; }

/* ── HOME PAGE ─────────────────────────────────────────────── */
.home-page { min-height: 100vh; background: linear-gradient(145deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%); display: flex; flex-direction: column; }

/* Navbar */
.home-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 48px; position: relative; z-index: 10; }
.home-nav-brand { display: flex; align-items: center; gap: 14px; }
.home-nav-logo  { width: 42px; height: 42px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; color: white; letter-spacing: -0.5px; flex-shrink: 0; }
.home-nav-texts { display: flex; flex-direction: column; }
.home-nav-title  { font-size: 17px; font-weight: 800; color: white; line-height: 1.2; }
.home-nav-school { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 400; }
.home-nav-links  { display: flex; gap: 10px; align-items: center; }
.home-nav-btn { font-size: 13.5px; font-weight: 600; padding: 8px 18px; border-radius: 8px; transition: all .2s; display: inline-block; }
.home-nav-btn-outline { color: rgba(255,255,255,.9); border: 1.5px solid rgba(255,255,255,.4); }
.home-nav-btn-outline:hover { background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.7); }
.home-nav-btn-solid { background: white; color: var(--primary-dark); }
.home-nav-btn-solid:hover { background: rgba(255,255,255,.92); transform: translateY(-1px); }

/* Hero */
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 60px; text-align: center; }
.hero-eyebrow { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.9); padding: 6px 16px; border-radius: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 24px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(38px, 6vw, 64px); color: white; font-weight: 800; line-height: 1.1; margin-bottom: 18px; }
.hero h1 span { color: #FFD54F; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.82); max-width: 560px; line-height: 1.75; margin-bottom: 36px; }
.hero-sub strong { color: white; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; }
.hero-btn { display: inline-flex; align-items: center; padding: 13px 26px; border-radius: 8px; font-size: 14px; font-weight: 700; letter-spacing: .2px; transition: all .2s; }
.hero-btn-primary { background: white; color: var(--primary-dark); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.hero-btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,.5); }
.hero-btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.85); }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 16px; max-width: 900px; width: 100%; }
.feature-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 22px; text-align: left; transition: transform .2s; }
.feature-card:hover { transform: translateY(-3px); }
.feature-num  { font-size: 10px; font-weight: 800; letter-spacing: 2px; color: rgba(255,255,255,.35); margin-bottom: 10px; text-transform: uppercase; }
.feature-card h3 { color: white; font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { color: rgba(255,255,255,.7); font-size: 12.5px; line-height: 1.65; }
.home-footer { text-align: center; padding: 16px; color: rgba(255,255,255,.3); font-size: 11.5px; border-top: 1px solid rgba(255,255,255,.08); }

/* ── REPORT PAGE ───────────────────────────────────────────── */
.report-page { min-height: 100vh; background: var(--bg); }
.report-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; padding: 36px 24px; text-align: center; }
.report-header-logo { width: 50px; height: 50px; background: rgba(255,255,255,.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; color: white; margin: 0 auto 14px; }
.report-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.report-header p  { color: rgba(255,255,255,.8); font-size: 14.5px; }
.report-container { max-width: 700px; margin: -28px auto 60px; padding: 0 20px; }
.report-form-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.form-section { padding: 26px 30px; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: none; }
.form-section-title { font-size: 10.5px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px; }

/* Radio cards */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-card  { flex: 1; min-width: 150px; }
.radio-card input { display: none; }
.radio-card label { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all .15s; }
.radio-card label:hover { border-color: var(--primary-mid); }
.radio-card input:checked + label { border-color: var(--primary); background: var(--primary-light); }
.radio-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; position: relative; transition: border-color .15s; }
.radio-card input:checked + label .radio-dot { border-color: var(--primary); background: var(--primary); }
.radio-card input:checked + label .radio-dot::after { content:''; position: absolute; top:3px; left:3px; width:6px; height:6px; background:white; border-radius:50%; }

/* Success card */
.success-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 56px 36px; text-align: center; }
.success-icon-box { width: 60px; height: 60px; background: var(--success-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: var(--success); margin: 0 auto 20px; }
.success-card h2 { font-size: 22px; font-weight: 800; color: var(--success); margin-bottom: 12px; }
.success-card p  { color: var(--text-mid); font-size: 14.5px; line-height: 1.7; }

/* ── LOGIN PAGE ────────────────────────────────────────────── */
.login-page  { min-height: 100vh; display: flex; background: var(--bg); }
.login-left  { flex: 1; background: linear-gradient(160deg, var(--primary-dark), var(--primary-mid)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; text-align: center; }
.login-left-logo { width: 56px; height: 56px; background: rgba(255,255,255,.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; color: white; margin: 0 auto 20px; }
.login-left h1  { color: white; font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.login-left p   { color: rgba(255,255,255,.72); font-size: 14.5px; max-width: 280px; line-height: 1.65; }
.login-right { width: 460px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card  { width: 100%; max-width: 360px; }
.login-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.login-sub { color: var(--text-light); margin-bottom: 28px; font-size: 13.5px; }

/* ── Misc utils ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none; }
.text-muted { color: var(--text-light); }
.font-bold  { font-weight: 700; }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-light); }
.empty-state p { font-size: 14.5px; }
.menu-toggle { display: none; background: none; border: none; font-size: 20px; color: var(--text-dark); padding: 4px 6px; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.fade-in   { animation: fadeUp .4s ease both; }
.fade-in-1 { animation-delay: .05s; }
.fade-in-2 { animation-delay: .1s; }
.fade-in-3 { animation-delay: .15s; }
.fade-in-4 { animation-delay: .2s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar, .page-content { padding-left: 20px; padding-right: 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  .home-nav { padding: 16px 20px; }
  .login-left { display: none; }
  .login-right { width: 100%; }
  .menu-toggle { display: flex; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .features { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-section { padding: 18px; }
  .content-header { flex-direction: column; gap: 12px; }
}
.sidebar-overlay { display: none; position: fixed; inset:0; background: rgba(0,0,0,.4); z-index: 99; }
.sidebar-overlay.show { display: block; }
