/* ============================================================
   assets/css/style.css - DepEd Email System Styles
   Theme Color: #006837 (DepEd Green)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ---------------------------------------------------------------
   CSS VARIABLES
   --------------------------------------------------------------- */
:root {
  --green:          #006837;
  --green-dark:     #004d28;
  --green-light:    #e8f5ee;
  --green-mid:      #00a855;
  --accent:         #fbbf24;
  --accent-dark:    #d97706;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --warning:        #f59e0b;
  --warning-light:  #fef3c7;
  --info:           #3b82f6;
  --info-light:     #eff6ff;
  --text-primary:   #111827;
  --text-secondary: #6b7280;
  --text-muted:     #9ca3af;
  --border:         #e5e7eb;
  --border-dark:    #d1d5db;
  --surface:        #ffffff;
  --surface-alt:    #f9fafb;
  --sidebar-w:      260px;
  --header-h:       64px;
  --radius:         10px;
  --radius-lg:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow:         0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.12);
  --transition:     .2s ease;
}

/* ---------------------------------------------------------------
   RESET & BASE
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface-alt);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------------------------------------------------------------
   AUTH PAGES (Login, Register, Forgot Password)
   --------------------------------------------------------------- */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-brand {
  background: linear-gradient(145deg, var(--green-dark) 0%, var(--green) 50%, var(--green-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  top: -100px; right: -100px;
}
.auth-brand::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  bottom: -80px; left: -80px;
}
.auth-brand-logo {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.15);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.auth-brand h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px; font-weight: 800;
  color: #fff; text-align: center;
  line-height: 1.3;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.auth-brand p {
  color: rgba(255,255,255,.75);
  text-align: center; font-size: 15px;
  max-width: 340px; line-height: 1.7;
  position: relative; z-index: 1;
}
.auth-brand-features {
  margin-top: 40px; position: relative; z-index: 1;
  width: 100%;
}
.auth-brand-features li {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85); font-size: 14px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.auth-brand-features li span.icon { font-size: 18px; }

.auth-form-side {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 48px 60px;
  background: var(--surface);
  overflow-y: auto;
}
.auth-form-container {
  width: 100%; max-width: 460px;
}
.auth-form-container h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--text-primary); margin-bottom: 6px;
}
.auth-form-container .auth-subtitle {
  color: var(--text-secondary); font-size: 15px; margin-bottom: 32px;
}

/* ---------------------------------------------------------------
   FORM ELEMENTS
   --------------------------------------------------------------- */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .5px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 15px;
  color: var(--text-primary); background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,104,55,.12);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control::placeholder { color: var(--text-muted); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 42px; }
.input-icon-wrap .input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 18px; pointer-events: none;
}
.input-icon-wrap .toggle-pw {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); font-size: 18px;
  cursor: pointer; padding: 0;
}
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ---------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; border: none;
  transition: all var(--transition); cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: #fff;
}
.btn-primary:hover { background: var(--green-dark); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,104,55,.3); }
.btn-secondary { background: var(--surface-alt); color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text-primary); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; text-decoration: none; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-success { background: var(--green-mid); color: #fff; }
.btn-success:hover { background: var(--green); color: #fff; text-decoration: none; }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------
   ALERTS & FLASH MESSAGES
   --------------------------------------------------------------- */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px;
  animation: fadeIn .3s ease;
}
.alert-success { background: var(--green-light); color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: var(--danger-light); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: var(--info-light);    color: #1e40af; border: 1px solid #bfdbfe; }
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ---------------------------------------------------------------
   BADGES
   --------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
}
.badge-pending    { background: #fef3c7; color: #92400e; }
.badge-checked    { background: #dbeafe; color: #1e40af; }
.badge-complete   { background: #d1fae5; color: #065f46; }
.badge-incomplete { background: var(--danger-light); color: #991b1b; }
.badge-processed  { background: #ede9fe; color: #5b21b6; }
.badge-done       { background: #d1fae5; color: #065f46; }

/* ---------------------------------------------------------------
   APP LAYOUT (with sidebar)
   --------------------------------------------------------------- */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); background: var(--green-dark);
  min-height: 100vh; position: fixed; top: 0; left: 0; z-index: 100;
  display: flex; flex-direction: column;
  transition: transform var(--transition);
}
.sidebar-brand {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand-inner {
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo {
  width: 42px; height: 42px; background: rgba(255,255,255,.15);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
}
.sidebar-brand-text h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 800; color: #fff; line-height: 1.2;
}
.sidebar-brand-text span {
  font-size: 11px; color: rgba(255,255,255,.55); display: block;
}

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.sidebar-section-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 22px 6px;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 22px; color: rgba(255,255,255,.7);
  font-size: 14px; font-weight: 500; text-decoration: none;
  border-radius: 0; transition: all var(--transition);
  position: relative;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar-nav a.active {
  background: rgba(255,255,255,.12); color: #fff;
}
.sidebar-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent); border-radius: 0 4px 4px 0;
}
.sidebar-nav a .nav-icon { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; }
.sidebar-nav a .nav-badge {
  margin-left: auto; background: var(--danger);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px; min-width: 20px; text-align: center;
}

.sidebar-footer {
  padding: 14px 22px; border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius);
  background: rgba(255,255,255,.06);
}
.sidebar-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-mid); display: flex; align-items: center;
  justify-content: center; font-size: 15px; font-weight: 700;
  color: #fff; flex-shrink: 0; overflow: hidden;
}
.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info strong {
  font-size: 13px; color: #fff; font-weight: 600;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-info small { font-size: 11px; color: rgba(255,255,255,.5); }
.sidebar-user-logout {
  color: rgba(255,255,255,.5); font-size: 18px;
  background: none; border: none; cursor: pointer; flex-shrink: 0;
  transition: color var(--transition);
}
.sidebar-user-logout:hover { color: var(--danger); }

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column; min-height: 100vh;
}
.topbar {
  height: var(--header-h); background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--text-primary);
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-notif {
  position: relative; width: 38px; height: 38px;
  border-radius: var(--radius); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: all var(--transition);
  background: none; color: var(--text-secondary);
}
.topbar-notif:hover { background: var(--green-light); border-color: var(--green); color: var(--green); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; background: var(--danger);
  border-radius: 50%; border: 2px solid var(--surface);
}

.page-body { padding: 28px; flex: 1; }

/* ---------------------------------------------------------------
   CARDS
   --------------------------------------------------------------- */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--text-primary);
}
.card-body { padding: 24px; }

/* ---------------------------------------------------------------
   STATS CARDS
   --------------------------------------------------------------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px; margin-bottom: 28px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.green  { background: var(--green-light); }
.stat-icon.yellow { background: var(--warning-light); }
.stat-icon.red    { background: var(--danger-light); }
.stat-icon.blue   { background: var(--info-light); }
.stat-icon.purple { background: #ede9fe; }
.stat-info { flex: 1; }
.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px; font-weight: 800; color: var(--text-primary); line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ---------------------------------------------------------------
   TABLE
   --------------------------------------------------------------- */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th {
  background: var(--surface-alt); padding: 12px 16px;
  text-align: left; font-size: 12px; font-weight: 700;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-primary);
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--surface-alt); }
.td-muted { color: var(--text-secondary); font-size: 13px; }

/* ---------------------------------------------------------------
   MODALS
   --------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; box-shadow: var(--shadow-lg);
  transform: scale(.95); transition: transform .2s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--surface-alt); border: none; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
}

/* ---------------------------------------------------------------
   PAGINATION
   --------------------------------------------------------------- */
.pagination {
  display: flex; align-items: center; gap: 6px;
  justify-content: center; margin-top: 24px;
}
.pagination a, .pagination span {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1.5px solid var(--border); color: var(--text-primary);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--green); color: var(--green); background: var(--green-light); text-decoration: none; }
.pagination span.active { background: var(--green); border-color: var(--green); color: #fff; }
.pagination span.dots { border: none; color: var(--text-muted); }

/* ---------------------------------------------------------------
   SEARCH & FILTER BAR
   --------------------------------------------------------------- */
.search-filter-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.search-wrap {
  position: relative; flex: 1; min-width: 220px;
}
.search-wrap input {
  width: 100%; padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; outline: none; transition: all var(--transition);
}
.search-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,104,55,.1); }
.search-wrap .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: var(--text-muted); pointer-events: none;
}
.filter-select {
  padding: 10px 32px 10px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; outline: none;
  background: var(--surface); color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 18px;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--green); }

/* ---------------------------------------------------------------
   FILE UPLOAD
   --------------------------------------------------------------- */
.file-drop {
  border: 2px dashed var(--border-dark); border-radius: var(--radius);
  padding: 28px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--surface-alt);
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--green); background: var(--green-light);
}
.file-drop .file-icon { font-size: 36px; margin-bottom: 8px; }
.file-drop p { font-size: 14px; color: var(--text-secondary); }
.file-drop strong { color: var(--green); }
.file-list { margin-top: 12px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); margin-top: 8px;
}
.file-item .file-info { flex: 1; }
.file-item .file-name { font-size: 13px; font-weight: 500; }
.file-item .file-size { font-size: 12px; color: var(--text-muted); }
.file-remove {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 16px; padding: 2px;
}
.file-remove:hover { color: var(--danger); }

/* ---------------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------------- */
.empty-state {
  text-align: center; padding: 60px 24px; color: var(--text-secondary);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; opacity: .5; }
.empty-state h3 { font-size: 18px; color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ---------------------------------------------------------------
   SPINNER / LOADING
   --------------------------------------------------------------- */
.spinner {
  width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------
   PROFILE PICTURE UPLOAD
   --------------------------------------------------------------- */
.avatar-upload-wrap { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.avatar-preview {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green-light); border: 3px solid var(--green);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--green);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------
   STEP INDICATOR (Request flow)
   --------------------------------------------------------------- */
.request-steps {
  display: flex; align-items: center; gap: 0; margin: 20px 0;
}
.step {
  display: flex; align-items: center; flex: 1;
}
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  border: 2px solid var(--border); background: var(--surface-alt); color: var(--text-muted);
}
.step.done .step-circle { background: var(--green); border-color: var(--green); color: #fff; }
.step.current .step-circle { border-color: var(--green); color: var(--green); background: var(--green-light); }
.step-line { flex: 1; height: 2px; background: var(--border); }
.step.done .step-line { background: var(--green); }
.step-label { font-size: 11px; color: var(--text-muted); display: block; margin-top: 6px; white-space: nowrap; }
.step.done .step-label, .step.current .step-label { color: var(--green); font-weight: 600; }
.step-wrap { display: flex; flex-direction: column; align-items: center; }

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-side { padding: 40px 24px; }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); }
  .sidebar.open { transform: translateX(0); width: 260px; }
  .main-content { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .page-body { padding: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .auth-form-container h2 { font-size: 22px; }
}

/* ---------------------------------------------------------------
   NOTIFICATION DROPDOWN
   --------------------------------------------------------------- */
.notif-dropdown {
  position: absolute; top: calc(var(--header-h) - 4px); right: 28px;
  width: 360px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 150; overflow: hidden;
  animation: fadeIn .2s ease;
}
.notif-dropdown-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.notif-dropdown-header h4 { font-size: 14px; font-weight: 700; }
.notif-item {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--transition);
}
.notif-item:hover { background: var(--surface-alt); }
.notif-item.unread { background: var(--green-light); }
.notif-item .notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.notif-item .notif-msg { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.notif-item .notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notif-empty { padding: 30px; text-align: center; color: var(--text-muted); font-size: 14px; }
