/* =====================================================
   Science Cafe x Saksham Progress Portal - Styles
   ===================================================== */

:root {
  --indigo: #3730a3;
  --indigo-dark: #312e81;
  --indigo-mid: #4338ca;
  --indigo-light: #6366f1;
  --indigo-xl: #e0e7ff;
  --indigo-pale: #f5f3ff;
  --emerald: #059669;
  --emerald-light: #10b981;
  --emerald-xl: #d1fae5;
  --coral: #f43f5e;
  --coral-light: #fb7185;
  --coral-xl: #ffe4e6;
  --amber: #d97706;
  --amber-light: #f59e0b;
  --amber-xl: #fef3c7;
  --violet: #7c3aed;
  --violet-xl: #ede9fe;
  --slate: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--slate); background: var(--slate-50); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--indigo-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ============== LOGIN ============== */
.login-body { background: linear-gradient(135deg, var(--indigo-pale) 0%, var(--indigo-xl) 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-shell { width: 100%; max-width: 440px; }
.login-card { background: #fff; border-radius: 18px; padding: 36px 32px 28px; box-shadow: 0 20px 60px rgba(55,48,163,0.15); }
.login-head { text-align: center; margin-bottom: 22px; }
.login-logo-img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 12px; }
.login-logo-text { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, var(--indigo), var(--indigo-light)); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.login-brand { font-size: 24px; color: var(--indigo-dark); margin-bottom: 4px; }
.login-sub { color: var(--slate-500); font-size: 14px; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--slate-100); padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.login-tab { padding: 10px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--slate-600); transition: all .2s; }
.login-tab.active { background: #fff; color: var(--indigo-dark); box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.login-error { background: var(--coral-xl); color: #9f1239; padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; border-left: 3px solid var(--coral); }
.login-info { background: var(--indigo-xl); color: var(--indigo-dark); padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.lf-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate-700); }
.lf-label input { padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: 9px; font-size: 15px; transition: all .2s; background: #fff; }
.lf-label input:focus { outline: none; border-color: var(--indigo-light); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.login-btn { background: linear-gradient(135deg, var(--indigo), var(--indigo-light)); color: #fff; padding: 13px; border-radius: 9px; font-weight: 700; font-size: 15px; font-family: 'Plus Jakarta Sans', sans-serif; transition: all .2s; }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(55,48,163,0.25); }
.login-forgot { display: block; text-align: center; margin-top: 8px; font-size: 13px; color: var(--indigo-light); }
.login-foot { text-align: center; color: var(--slate-500); font-size: 13px; margin-top: 18px; }

/* ============== APP LAYOUT ============== */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 248px; background: #fff; border-right: 1px solid var(--slate-200); display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; }
.sb-brand { padding: 20px 18px; border-bottom: 1px solid var(--slate-100); display: flex; align-items: center; gap: 12px; }
.sb-brand-logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--indigo), var(--indigo-light)); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.sb-brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.sb-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.sb-brand-text b { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--indigo-dark); font-size: 14px; font-weight: 800; }
.sb-brand-text span { font-size: 11px; color: var(--slate-500); }
.sb-nav { flex: 1; overflow-y: auto; padding: 14px 10px; }
.sb-section { font-size: 11px; font-weight: 700; color: var(--slate-400); text-transform: uppercase; letter-spacing: 0.7px; padding: 14px 12px 6px; }
.sb-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--slate-600); font-size: 14px; font-weight: 500; text-align: left; margin-bottom: 2px; transition: all .15s; }
.sb-item:hover { background: var(--slate-100); color: var(--slate); }
.sb-item.active { background: var(--indigo-xl); color: var(--indigo-dark); font-weight: 700; }
.sb-item .ic { width: 20px; text-align: center; font-size: 16px; flex-shrink: 0; }
.sb-foot { padding: 14px; border-top: 1px solid var(--slate-100); }
.sb-user { display: flex; align-items: center; gap: 11px; }
.sb-user-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--indigo), var(--indigo-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-info b { display: block; font-size: 13px; color: var(--slate); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-info span { display: block; font-size: 11px; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.4px; }
.sb-logout { width: 100%; margin-top: 10px; padding: 8px; background: var(--slate-100); border-radius: 7px; color: var(--slate-700); font-size: 13px; font-weight: 600; }
.sb-logout:hover { background: var(--coral-xl); color: var(--coral); }

.main { margin-left: 248px; flex: 1; min-width: 0; background: var(--slate-50); }
.topbar { background: #fff; border-bottom: 1px solid var(--slate-200); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; }
.tb-title { font-size: 19px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--slate); }
.tb-right { display: flex; align-items: center; gap: 12px; }
.role-badge { padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.role-trainer { background: var(--indigo-xl); color: var(--indigo-dark); }
.role-client  { background: var(--emerald-xl); color: var(--emerald); }
.btn { padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--indigo-light)); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(55,48,163,0.25); }
.btn-ghost { background: var(--slate-100); color: var(--slate-700); }
.btn-ghost:hover { background: var(--slate-200); }
.btn-danger { background: var(--coral-xl); color: var(--coral); }
.btn-danger:hover { background: var(--coral); color: #fff; }
.btn-success { background: var(--emerald); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 6px; }

.content { padding: 28px; }
.page-section { display: none; }
.page-section.active { display: block; }

/* ============== STAT CARDS ============== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; border-top: 3px solid var(--indigo); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.stat-card.indigo  { border-top-color: var(--indigo); }
.stat-card.emerald { border-top-color: var(--emerald); }
.stat-card.amber   { border-top-color: var(--amber); }
.stat-card.coral   { border-top-color: var(--coral); }
.stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--slate-500); letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--slate); line-height: 1; }
.stat-sub { font-size: 13px; color: var(--slate-500); margin-top: 6px; }

/* ============== CARDS ============== */
.card { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 18px; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-h h3 { font-size: 16px; color: var(--slate); }
.card-h .card-actions { display: flex; gap: 8px; }
.row-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.row-grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 900px) { .row-grid-2, .row-grid-3 { grid-template-columns: 1fr; } }

/* ============== TABLES ============== */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 700; font-size: 11px; text-transform: uppercase; color: var(--slate-500); letter-spacing: 0.5px; padding: 10px 12px; border-bottom: 1px solid var(--slate-200); background: var(--slate-50); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); }
.tbl tr:hover td { background: var(--slate-50); }
.tbl-link { color: var(--indigo-light); font-weight: 600; cursor: pointer; }
.tbl-link:hover { text-decoration: underline; }
.tbl-wrap { overflow-x: auto; }

/* ============== BADGES ============== */
.batch { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.batch-junior { background: #d1fae5; color: #059669; }
.batch-senior { background: #dbeafe; color: #1d4ed8; }
.batch-both   { background: #ede9fe; color: #7c3aed; }
.status-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-completed { background: #d1fae5; color: #059669; }
.status-planned   { background: #fef3c7; color: #d97706; }
.status-missed    { background: #ffe4e6; color: #f43f5e; }

/* ============== FILTER CHIPS ============== */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--slate-200); color: var(--slate-600); font-size: 13px; font-weight: 600; transition: all .15s; }
.chip:hover { background: var(--slate-100); }
.chip.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ============== STUDENT CARDS ============== */
.student-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.stu-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); cursor: pointer; transition: all .2s; text-align: center; }
.stu-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.avatar { width: 64px; height: 64px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-family: 'Plus Jakarta Sans', sans-serif; background-size: cover; background-position: center; }
.avatar.lg { width: 96px; height: 96px; font-size: 32px; }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; margin: 0; }
.stu-card h4 { font-size: 15px; margin-bottom: 4px; color: var(--slate); }
.stu-card .meta { font-size: 12px; color: var(--slate-500); margin-bottom: 10px; }
.stu-card .stats-line { display: flex; justify-content: space-around; padding-top: 12px; border-top: 1px solid var(--slate-100); }
.stu-card .stats-line div { text-align: center; }
.stu-card .stats-line strong { display: block; font-size: 16px; color: var(--slate); font-family: 'Plus Jakarta Sans', sans-serif; }
.stu-card .stats-line span { font-size: 10px; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.4px; }

/* ============== PILLAR BARS ============== */
.pillar-list { display: flex; flex-direction: column; gap: 10px; }
.pillar { display: grid; grid-template-columns: 28px 130px 1fr 50px; gap: 10px; align-items: center; }
.pillar .ic { font-size: 18px; text-align: center; }
.pillar .lbl { font-size: 13px; color: var(--slate-700); font-weight: 500; }
.pillar .bar { background: var(--slate-100); border-radius: 999px; height: 8px; overflow: hidden; }
.pillar .bar-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }
.pillar .val { text-align: right; font-size: 13px; font-weight: 700; color: var(--slate); font-family: 'Plus Jakarta Sans', sans-serif; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* ============== HERO (student profile) ============== */
.hero { background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-light) 100%); color: #fff; border-radius: 14px; padding: 28px; display: flex; gap: 24px; align-items: center; margin-bottom: 18px; }
.hero .avatar { width: 110px; height: 110px; font-size: 38px; background: rgba(255,255,255,0.18); flex-shrink: 0; }
.hero-info h2 { font-size: 28px; margin-bottom: 4px; color: #fff; }
.hero-info .sub { font-size: 14px; opacity: 0.85; margin-bottom: 14px; }
.hero-stats { display: flex; gap: 24px; }
.hero-stats div strong { display: block; font-size: 22px; font-family: 'Plus Jakarta Sans', sans-serif; }
.hero-stats div span { font-size: 11px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============== TABS ============== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--slate-200); margin-bottom: 18px; overflow-x: auto; }
.tab-btn { padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--slate-600); border-bottom: 2px solid transparent; white-space: nowrap; transition: all .15s; }
.tab-btn:hover { color: var(--indigo-dark); }
.tab-btn.active { color: var(--indigo-dark); border-bottom-color: var(--indigo); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============== MODALS ============== */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 30px 20px; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 14px; max-width: 640px; width: 100%; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); margin-bottom: 30px; }
.modal-box.lg { max-width: 880px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-h h3 { font-size: 18px; color: var(--slate); }
.modal-close { width: 32px; height: 32px; border-radius: 8px; background: var(--slate-100); color: var(--slate-700); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.modal-close:hover { background: var(--coral-xl); color: var(--coral); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ============== FORMS ============== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.cols-1 { grid-template-columns: 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 700px) { .form-row, .form-row.cols-3 { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 12px; font-weight: 600; color: var(--slate-700); }
.form-field input, .form-field select, .form-field textarea {
  padding: 9px 12px; border: 1px solid var(--slate-200); border-radius: 8px; font-size: 14px; background: #fff; transition: all .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--indigo-light); box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-field textarea { min-height: 70px; resize: vertical; font-family: inherit; }

/* ============== ATTENDANCE BUTTONS ============== */
.att-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 8px; border-bottom: 1px solid var(--slate-100); }
.att-row:last-child { border-bottom: none; }
.att-row .nm { font-size: 14px; color: var(--slate-700); font-weight: 500; }
.att-btns { display: flex; gap: 4px; }
.att-btn { width: 34px; height: 34px; border-radius: 7px; background: var(--slate-100); color: var(--slate-500); font-weight: 700; font-size: 13px; transition: all .15s; }
.att-btn:hover { background: var(--slate-200); }
.att-btn.sel-P { background: var(--emerald); color: #fff; }
.att-btn.sel-A { background: var(--coral); color: #fff; }
.att-btn.sel-L { background: var(--amber); color: #fff; }

/* ============== HPR SCORE TABLE ============== */
.hpr-input-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.hpr-input-tbl th { padding: 8px 6px; text-align: center; font-size: 10px; text-transform: uppercase; color: var(--slate-500); letter-spacing: 0.4px; background: var(--slate-50); border-bottom: 1px solid var(--slate-200); font-weight: 700; }
.hpr-input-tbl th:first-child { text-align: left; padding-left: 10px; }
.hpr-input-tbl td { padding: 6px 4px; border-bottom: 1px solid var(--slate-100); }
.hpr-input-tbl td:first-child { padding-left: 10px; font-weight: 500; color: var(--slate-700); white-space: nowrap; }
.hpr-input-tbl input[type=number] { width: 56px; padding: 5px 6px; border: 1px solid var(--slate-200); border-radius: 6px; text-align: center; font-size: 13px; }
.hpr-input-tbl input[type=number]:focus { outline: none; border-color: var(--indigo-light); }
.hpr-input-tbl .comment-input { width: 100%; padding: 5px 8px; border: 1px solid var(--slate-200); border-radius: 6px; font-size: 12px; }

/* ============== TOAST ============== */
.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; padding: 12px 18px; border-radius: 9px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); font-size: 14px; font-weight: 600; min-width: 220px; border-left: 4px solid var(--slate-400); }
.toast.success { border-left-color: var(--emerald); color: var(--emerald); }
.toast.error   { border-left-color: var(--coral); color: var(--coral); }
.toast.info    { border-left-color: var(--indigo-light); color: var(--indigo-dark); }

/* ============== MEDIA GRID ============== */
.media-section { margin-bottom: 22px; }
.media-section h4 { font-size: 14px; color: var(--slate-700); margin-bottom: 10px; padding: 6px 10px; background: var(--slate-100); border-radius: 6px; display: inline-block; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.media-item { background: #fff; border-radius: 10px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: all .2s; position: relative; }
.media-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.media-thumb { width: 100%; height: 130px; background: var(--slate-100); display: flex; align-items: center; justify-content: center; color: var(--slate-400); font-size: 36px; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-info { padding: 8px 10px; font-size: 12px; }
.media-info .nm { font-weight: 600; color: var(--slate-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-info .meta { color: var(--slate-500); font-size: 11px; margin-top: 2px; }
.media-del { position: absolute; top: 6px; right: 6px; background: rgba(244,63,94,0.9); color: #fff; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; opacity: 0; transition: opacity .2s; }
.media-item:hover .media-del { opacity: 1; }

/* ============== LIGHTBOX ============== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 150; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lb-content { max-width: 90vw; max-height: 90vh; }
.lb-content img, .lb-content video { max-width: 90vw; max-height: 88vh; border-radius: 8px; }
.lb-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; font-size: 22px; backdrop-filter: blur(8px); }
.lb-close:hover { background: rgba(255,255,255,0.3); }

/* ============== TIMELINE ============== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--slate-200); }
.tl-item { position: relative; padding: 10px 0 14px 14px; border-bottom: 1px solid var(--slate-100); }
.tl-item::before { content: ''; position: absolute; left: -27px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--indigo-light); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--slate-200); }
.tl-item .dt { font-size: 12px; color: var(--slate-500); }
.tl-item .tt { font-size: 14px; font-weight: 600; color: var(--slate); margin-top: 2px; }
.tl-item .meta { display: flex; gap: 12px; font-size: 12px; color: var(--slate-600); margin-top: 6px; }
.tl-item .cmt { margin-top: 6px; font-size: 13px; color: var(--slate-600); font-style: italic; padding: 6px 10px; background: var(--slate-50); border-radius: 6px; }

/* ============== PROJECTS ============== */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.proj-card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border-left: 3px solid var(--violet); }
.proj-card h4 { font-size: 15px; margin-bottom: 6px; color: var(--slate); }
.proj-card .meta { font-size: 12px; color: var(--slate-500); margin-bottom: 8px; }
.proj-card .desc { font-size: 13px; color: var(--slate-600); margin-bottom: 10px; }
.proj-card .footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--slate-100); font-size: 12px; }

/* ============== LOG SESSION ============== */
.log-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
@media (max-width: 1100px) { .log-grid { grid-template-columns: 1fr; } }

/* ============== ADMIN ============== */
.admin-shell { padding: 28px; max-width: 1100px; margin: 0 auto; }
.admin-topbar { background: #fff; padding: 14px 22px; border-radius: 12px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.user-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.user-pill { padding: 8px 14px; border-radius: 999px; background: var(--slate-100); border: 1px solid var(--slate-200); color: var(--slate-700); font-size: 13px; font-weight: 600; }
.user-pill:hover { background: var(--slate-200); }
.user-pill.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.logo-zone { border: 2px dashed var(--slate-200); border-radius: 12px; padding: 22px; text-align: center; background: var(--slate-50); transition: all .2s; cursor: pointer; }
.logo-zone:hover, .logo-zone.drag { border-color: var(--indigo-light); background: var(--indigo-pale); }
.logo-preview { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.logo-preview img { max-width: 80%; max-height: 80%; object-fit: contain; }

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-toggle { display: inline-flex !important; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero { flex-direction: column; text-align: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; }
}
.mobile-toggle { display: none; }

/* Print */
@media print {
  .sidebar, .topbar, .modal, .toast-wrap, .lightbox, .btn { display: none !important; }
  .main { margin-left: 0; }
  .content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* Utility */
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--slate-500); }
.text-sm { font-size: 13px; }
.empty { padding: 30px; text-align: center; color: var(--slate-500); font-size: 14px; }
.inline-actions { display: flex; gap: 4px; }
.icon-btn { width: 30px; height: 30px; border-radius: 6px; background: var(--slate-100); color: var(--slate-700); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.icon-btn:hover { background: var(--indigo-xl); color: var(--indigo-dark); }
.icon-btn.danger:hover { background: var(--coral-xl); color: var(--coral); }
