/* ============================================================
   BELLOENNY RESOURCES LIMITED — ADMIN DASHBOARD STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --primary: #0A2463;
  --primary-light: #1B4FD8;
  --primary-dark: #061540;
  --accent: #F5C800;
  --accent-dark: #D4A900;
  --white: #FFFFFF;
  --off-white: #F4F6FA;
  --light-gray: #E5E9F2;
  --mid-gray: #8C93A8;
  --dark-gray: #2D3348;
  --text: #1A1E2E;
  --text-light: #4A5168;
  --success: #16A34A;
  --error: #DC2626;
  --warning: #D97706;
  --info: #0284C7;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-ui: 'Rajdhani', sans-serif;

  --sidebar-w: 260px;
  --sidebar-collapsed: 72px;
  --topbar-h: 64px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(10,36,99,0.08);
  --shadow: 0 4px 16px rgba(10,36,99,0.10);
  --shadow-lg: 0 8px 32px rgba(10,36,99,0.14);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.22s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--off-white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* Admin Layout */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary-dark);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: width var(--duration) var(--ease);
  overflow: hidden;
}

.sidebar.collapsed { width: var(--sidebar-collapsed); }

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: var(--topbar-h);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar__logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.sidebar__logo-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  overflow: hidden;
}

.sidebar__logo-sub {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.sidebar__toggle {
  width: 28px; height: 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}

.sidebar__toggle:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar__section-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 16px 10px 6px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .sidebar__section-label { opacity: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 2px;
  position: relative;
}

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

.nav-item.active {
  background: rgba(27,79,216,0.35);
  color: var(--white);
  border: 1px solid rgba(27,79,216,0.4);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-item__icon {
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-item__label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  flex: 1;
}

.nav-item__badge {
  background: var(--error);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.sidebar.collapsed .nav-item__label,
.sidebar.collapsed .nav-item__badge { display: none; }

.sidebar__footer {
  padding: 12px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

/* Main Content */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--duration) var(--ease);
}

.admin-main.sidebar-collapsed { margin-left: var(--sidebar-collapsed); }

/* Topbar */
.admin-topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  margin-right: 10px;
}

.topbar__hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.topbar__left { display: flex; align-items: center; gap: 16px; }

.topbar__page-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.topbar__breadcrumb {
  font-size: 0.78rem;
  color: var(--mid-gray);
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar__right { display: flex; align-items: center; gap: 10px; }

.topbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 7px 14px;
  min-width: 220px;
  transition: border-color var(--duration) var(--ease);
}

.topbar__search:focus-within { border-color: var(--primary-light); }

.topbar__search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--text);
  width: 100%;
}

.topbar__search input::placeholder { color: var(--mid-gray); }

.topbar__icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  font-size: 1rem;
}

.topbar__icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.topbar__notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--error);
  border-radius: 50%;
  border: 1.5px solid var(--white);
}

/* Notifications Dropdown */
.notifications-dropdown {
  position: absolute;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
  z-index: 1000;
  overflow: hidden;
  animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-gray);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--off-white);
}

.notifications-header .mark-all-read {
  font-size: 0.7rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
}

.notifications-header .mark-all-read:hover {
  text-decoration: underline;
}

.notifications-list {
  max-height: 360px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-gray);
  cursor: pointer;
  transition: background var(--duration) ease;
}

.notification-item:hover {
  background: var(--off-white);
}

.notification-item.unread {
  background: rgba(27,79,216,0.05);
  border-left: 3px solid var(--primary);
}

.notification-message {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 4px;
}

.notification-time {
  font-size: 0.7rem;
  color: var(--mid-gray);
}

.notifications-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--light-gray);
  text-align: center;
  background: var(--off-white);
}

.notifications-footer a {
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
}

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

.topbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1.5px solid var(--light-gray);
  transition: all var(--duration) var(--ease);
  background: var(--off-white);
}

.topbar__user:hover { border-color: var(--primary); }

.topbar__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
}

.topbar__username {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

/* Admin Content */
.admin-content {
  flex: 1;
  padding: 24px;
}

/* Stat Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(27,79,216,0.04);
  transform: translate(30px, -30px);
}

.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.stat-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-card__label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.stat-card__icon {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card__change {
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-weight: 600;
}

.stat-card__change.up { color: var(--success); }
.stat-card__change.down { color: var(--error); }

/* Admin Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-light); box-shadow: 0 4px 16px rgba(10,36,99,0.25); }

.btn--accent { background: var(--accent); color: var(--primary-dark); }
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 4px 16px rgba(245,200,0,0.3); }

.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }

.btn--ghost { background: var(--off-white); color: var(--text); border-color: var(--light-gray); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--danger { background: var(--error); color: var(--white); }
.btn--danger:hover { opacity: 0.88; }

.btn--success { background: var(--success); color: var(--white); }

.btn--sm { font-size: 0.75rem; padding: 6px 12px; }
.btn--lg { font-size: 0.92rem; padding: 12px 24px; }
.btn--full { width: 100%; justify-content: center; }
.btn--icon-only { width: 36px; height: 36px; padding: 0; justify-content: center; }

/* Admin Cards / Panels */
.panel {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--light-gray);
  flex-wrap: wrap;
  gap: 12px;
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.panel__subtitle {
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-top: 2px;
  font-family: var(--font-body);
}

.panel__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.panel__body { padding: 20px; }
.panel__body--flush { padding: 0; }

.panel__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--off-white);
}

/* Admin Forms */
.form-group { margin-bottom: 18px; }

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required { color: var(--error); }

.form-control {
  width: 100%;
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  outline: none;
  transition: all var(--duration) var(--ease);
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(27,79,216,0.08);
}

.form-control.is-error { border-color: var(--error); }
.form-control.is-success { border-color: var(--success); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-error { font-size: 0.75rem; color: var(--error); margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.form-hint { font-size: 0.75rem; color: var(--mid-gray); margin-top: 4px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* Admin Table */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead th {
  background: var(--off-white);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1.5px solid var(--light-gray);
  white-space: nowrap;
  user-select: none;
}

.data-table thead th.sortable { cursor: pointer; }
.data-table thead th.sortable:hover { color: var(--primary); }

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--off-white); }

.table-check {
  width: 16px; height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.table-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.table-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.table-cell-main { font-weight: 600; color: var(--text); }
.table-cell-sub { font-size: 0.75rem; color: var(--mid-gray); }

.table-actions { display: flex; gap: 6px; align-items: center; }

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge--success { background: rgba(22,163,74,0.1); color: var(--success); }
.badge--pending { background: rgba(217,119,6,0.1); color: var(--warning); }
.badge--error { background: rgba(220,38,38,0.1); color: var(--error); }
.badge--info { background: rgba(2,132,199,0.1); color: var(--info); }
.badge--neutral { background: var(--light-gray); color: var(--mid-gray); }

/* Media Uploader */
.upload-zone {
  border: 2px dashed var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: var(--off-white);
}

.upload-zone:hover,
.upload-zone.dragging {
  border-color: var(--primary-light);
  background: rgba(27,79,216,0.04);
}

.upload-zone__icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.4; }
.upload-zone__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.upload-zone__sub { font-size: 0.82rem; color: var(--mid-gray); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.media-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--light-gray);
  position: relative;
  aspect-ratio: 1;
  background: var(--off-white);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.media-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.media-item:hover .media-item__actions { opacity: 1; }

.media-item img { width: 100%; height: 100%; object-fit: cover; }

.media-item__actions {
  position: absolute;
  inset: 0;
  background: rgba(6,21,64,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

/* Rich Text Editor */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap;
}

.editor-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--text-light);
  transition: all var(--duration) var(--ease);
  background: transparent;
  font-family: inherit;
  font-weight: 600;
}

.editor-btn:hover, .editor-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.editor-divider { width: 1px; height: 20px; background: var(--light-gray); margin: 0 4px; }

.editor-content {
  width: 100%;
  min-height: 200px;
  padding: 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  outline: none;
  resize: vertical;
  line-height: 1.75;
  transition: border-color var(--duration) var(--ease);
}

.editor-content:focus { border-color: var(--primary-light); }

/* Charts Placeholder */
.chart-container {
  position: relative;
  height: 240px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 20px 0 0;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
}

.chart-bar:hover { filter: brightness(1.1); }

.chart-bar--primary { background: var(--primary); }
.chart-bar--accent { background: var(--accent); }
.chart-bar--light { background: rgba(27,79,216,0.2); }

.chart-x-labels {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.chart-x-label {
  flex: 1;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--mid-gray);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Notifications Panel */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { opacity: 0.8; }
.notif-item.unread .notif-item__title { font-weight: 700; }

.notif-item__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.notif-item__title { font-size: 0.85rem; color: var(--text); line-height: 1.4; margin-bottom: 2px; }
.notif-item__time { font-size: 0.72rem; color: var(--mid-gray); font-family: var(--font-ui); font-weight: 600; }

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1.5px solid var(--light-gray);
  margin-bottom: 20px;
}

.tab {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--mid-gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all var(--duration) var(--ease);
  border-radius: var(--radius) var(--radius) 0 0;
}

.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(27,79,216,0.04); }

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

/* Checkbox / Toggle */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle__input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.toggle__track {
  width: 40px; height: 22px;
  background: var(--light-gray);
  border-radius: var(--radius-full);
  transition: background var(--duration) var(--ease);
  position: relative;
  flex-shrink: 0;
}

.toggle__input:checked + .toggle__track { background: var(--primary); }

.toggle__track::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  top: 3px; left: 3px;
  transition: transform var(--duration) var(--ease);
  box-shadow: var(--shadow-sm);
}

.toggle__input:checked + .toggle__track::after { transform: translateX(18px); }

.toggle__label { font-size: 0.88rem; color: var(--text); font-weight: 500; }

/* Login Page */
.admin-login-page {
  min-height: 100vh;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.admin-login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(6,21,64,0.5);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.login-logo__icon {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.login-logo__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.1;
}

.login-logo__sub {
  font-size: 0.65rem;
  color: var(--primary);
  font-family: var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.page-btn {
  min-width: 32px; height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--light-gray);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: var(--white);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Activity List */
.activity-list { display: flex; flex-direction: column; }

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
  margin-top: 5px;
  position: relative;
}

.activity-dot::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: calc(100% + 28px);
  background: var(--light-gray);
  transform: translateX(-50%);
}

.activity-item:last-child .activity-dot::before { display: none; }

.activity-text { font-size: 0.84rem; color: var(--text); line-height: 1.5; flex: 1; }
.activity-text strong { color: var(--primary); }
.activity-time { font-size: 0.72rem; color: var(--mid-gray); font-family: var(--font-ui); white-space: nowrap; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,21,64,0.65);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(6,21,64,0.3);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal--lg { max-width: 720px; }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--light-gray);
}

.modal__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }

.modal__close {
  width: 30px; height: 30px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--duration) var(--ease);
}

.modal__close:hover { background: var(--error); color: var(--white); border-color: var(--error); }

.modal__body { padding: 24px; }
.modal__footer { padding: 16px 24px; border-top: 1px solid var(--light-gray); display: flex; gap: 8px; justify-content: flex-end; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  min-width: 260px;
  max-width: 360px;
  animation: toastIn 0.25s ease;
}

.toast.leaving { animation: toastOut 0.25s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(16px); }
}

.toast--success { border-color: rgba(22,163,74,0.3); }
.toast--error { border-color: rgba(220,38,38,0.3); }
.toast--warning { border-color: rgba(217,119,6,0.3); }

/* Empty / Error States */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-state__icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.35; }
.empty-state__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state__desc { font-size: 0.84rem; color: var(--mid-gray); max-width: 320px; margin-bottom: 20px; }

/* Loading */
.loading-skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, var(--off-white) 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.loading-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--light-gray);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ENHANCED MOBILE RESPONSIVE STYLES
   ============================================================ */

/* Tablet Admin */
@media (min-width: 901px) and (max-width: 1200px) {
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row-2, .form-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-content {
    padding: 20px;
  }
  
  .notifications-dropdown {
    width: 300px;
  }
}

/* Mobile Admin */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 1000;
    width: 260px;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0 !important;
    width: 100%;
  }
  
  .topbar__hamburger {
    display: flex !important;
  }
  
  .topbar__search {
    display: none;
  }
  
  .topbar__username {
    display: none;
  }
  
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .admin-content {
    padding: 16px;
  }
  
  .panel__header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .panel__actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .data-table {
    font-size: 0.75rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
  
  .table-actions {
    flex-direction: column;
    gap: 5px;
  }
  
  .table-actions .btn {
    width: 100%;
  }
  
  .modal {
    width: 95%;
    margin: 10px;
    max-height: 85vh;
  }
  
  .modal__body {
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
  }
  
  .modal__footer {
    flex-direction: column;
  }
  
  .modal__footer .btn {
    width: 100%;
  }
  
  .upload-zone {
    padding: 20px;
  }
  
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  
  .notifications-dropdown {
    position: fixed;
    top: auto;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }
}

/* Small Mobile Admin */
@media (max-width: 600px) {
  .stat-cards {
    grid-template-columns: 1fr;
  }
  
  .topbar__page-title {
    font-size: 1rem;
  }
  
  .topbar__breadcrumb {
    font-size: 0.65rem;
  }
  
  .topbar__avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  .panel__title {
    font-size: 1rem;
  }
  
  .panel__subtitle {
    font-size: 0.7rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 6px 8px;
    font-size: 0.7rem;
  }
  
  .badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  .btn--sm {
    padding: 4px 8px;
    font-size: 0.65rem;
  }
  
  .form-label {
    font-size: 0.7rem;
  }
  
  .form-control {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .login-card {
    padding: 24px 20px;
    margin: 16px;
  }
  
  .login-logo__icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .login-logo__name {
    font-size: 0.85rem;
  }
  
  .admin-login-page h2 {
    font-size: 1.4rem;
  }
  
  .activity-item {
    flex-direction: column;
    gap: 5px;
  }
  
  .activity-time {
    align-self: flex-start;
  }
  
  .tabs {
    flex-wrap: wrap;
  }
  
  .tab {
    font-size: 0.7rem;
    padding: 6px 12px;
  }
  
  .upload-zone__title {
    font-size: 0.9rem;
  }
  
  .upload-zone__sub {
    font-size: 0.7rem;
  }
  
  .editor-toolbar {
    flex-wrap: wrap;
  }
  
  .editor-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .pagination {
    gap: 3px;
  }
  
  .page-btn {
    min-width: 28px;
    height: 28px;
    font-size: 0.7rem;
    padding: 0 4px;
  }
}

/* Landscape Mode */
@media (max-width: 900px) and (orientation: landscape) {
  .sidebar {
    overflow-y: auto;
    max-height: 100vh;
  }
  
  .modal__body {
    max-height: 50vh;
  }
  
  .notifications-list {
    max-height: 200px;
  }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
  .btn, 
  .nav-item,
  .page-btn,
  .tab {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  .btn:active,
  .nav-item:active {
    opacity: 0.7;
  }
  
  input, select, textarea {
    font-size: 16px;
  }
}