/* ============================================================
   MIMAK ADMIN — Custom SaaS Dashboard Styles
   Design System: Material UI × Stripe × Linear
   Bootstrap used as grid/util base ONLY — overridden here.
   ============================================================ */

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  --bg-base: #f0f2f5;
  --bg-card: #ffffff;
  --bg-sidebar: #0f1117;
  --bg-sidebar-alt: #181b24;
  --bg-hover: rgba(255, 255, 255, 0.06);

  --accent: #6c63ff;
  --accent-light: rgba(108, 99, 255, 0.12);
  --accent-mid: rgba(108, 99, 255, 0.25);
  --accent-soft: #eae9ff;
  --accent-doc: #0ea5e9;
  --accent-doc-light: rgba(14, 165, 233, 0.1);

  --text-primary: #0f1117;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-on-dark: #f3f4f6;
  --text-sidebar: rgba(255, 255, 255, 0.72);

  --border: rgba(0, 0, 0, 0.06);
  --border-input: #d1d5db;
  --border-focus: #6c63ff;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --sidebar-w: 230px;
  --topbar-h: 64px;
  --transition: 0.18s ease;

  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

/* ─── Reset / Base ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Layout Shell ────────────────────────────────────────── */
.mimak-admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ─────────────────────────────────────────────── */
.mimak-sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.mimak-logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.mimak-logo-text span {
  color: var(--accent);
}

.mimak-action-menu.show {
  display: block;
}

.mimak-action-dropdown {
  position: relative;
  display: inline-block;
}

/* The Three-Dots Button */
.mimak-action-trigger {
  background: transparent;
  border: 1px solid var(--border-color, #eee);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.mimak-action-trigger:hover {
  background: var(--bg-light, #f8f9fa);
  color: var(--text-main);
}

/* The Hidden Menu */
.mimak-action-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
  display: none;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border-color, #eee);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  margin-top: 4px;
}

/* Show on Hover */
.mimak-action-dropdown:hover .mimak-action-menu {
  display: block;
}

/* Individual Items */
.mimak-action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.mimak-action-item:hover {
  background: #f4f6f8;
}

.mimak-action-item.text-danger {
  color: #dc3545;
}

.mimak-action-divider {
  height: 1px;
  background: #eee;
  margin: 4px 0;
}
/* Company Switcher */
.company-switcher {
  margin: 12px 12px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}

.company-switcher:hover {
  background: rgba(255, 255, 255, 0.09);
}

.company-switcher-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.company-switcher-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.company-switcher-name svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.company-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1e2130;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  display: none;
}

.company-dropdown.open {
  display: block;
}

.company-dropdown-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sidebar);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition);
  cursor: pointer;
}

.company-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.company-dropdown-item.active {
  color: var(--accent);
}
.company-dropdown-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.company-dropdown-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 14px;
}

.company-dropdown-footer a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.company-dropdown-footer a:hover {
  color: var(--accent);
}

/* Sidebar Nav */
.sidebar-menu {
  padding: 8px 0 20px;
  flex: 1;
}

.menu-group {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  padding: 16px 20px 6px;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-sidebar);
  border-radius: 0;
  transition:
    background var(--transition),
    color var(--transition);
  position: relative;
  margin: 1px 0;
}

.menu-link:hover {
  background: var(--bg-hover);
  color: #fff;
}

.menu-link.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.menu-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.menu-link svg {
  opacity: 0.7;
  flex-shrink: 0;
}
.menu-link.active svg,
.menu-link:hover svg {
  opacity: 1;
}

/* ─── Main Content Area ────────────────────────────────────── */
.mimak-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Top Bar ─────────────────────────────────────────────── */
.mimak-topbar {
  height: var(--topbar-h);
  background: var(--bg-card);
  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-xs);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mimak-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}
.mimak-menu-btn:hover {
  background: var(--bg-base);
}

.search-wrapper {
  position: relative;
}

.mimak-input-elevated {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 38px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  width: 240px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  font-family: var(--font-sans);
}

.mimak-input-elevated:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-wrapper::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E")
    center/cover no-repeat;
}

.admin-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-base);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
}

.admin-profile-pill:hover {
  background: #e5e7eb;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
}

/* ─── Page Content ────────────────────────────────────────── */
.page-content {
  padding: 28px;
  flex: 1;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Cards ────────────────────────────────────────────────── */
.card-mimak {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-mimak-body {
  padding: 24px;
}
.card-mimak-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-mimak-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon.purple {
  background: var(--accent-light);
  color: var(--accent);
}
.card-icon.blue {
  background: var(--accent-doc-light);
  color: var(--accent-doc);
}

/* Stat Cards */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

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

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-icon.purple {
  background: var(--accent-light);
  color: var(--accent);
}
.stat-icon.blue {
  background: var(--accent-doc-light);
  color: var(--accent-doc);
}
.stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.stat-icon.orange {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1;
}

/* ─── Toggle Buttons (W/M/Y, 5/10/20) ────────────────────── */
.toggle-group {
  display: flex;
  gap: 2px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
}

.toggle-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1.4;
}

.toggle-btn.active,
.toggle-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.toggle-btn.active {
  color: var(--accent);
  font-weight: 700;
}

/* ─── Top Articles / Documents List ──────────────────────── */
.top-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  transition: background var(--transition);
}

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

.top-list-rank {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.top-list-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-list-meta {
  text-align: right;
  flex-shrink: 0;
}

.top-list-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.top-list-sub {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ─── Chart Containers ─────────────────────────────────────── */
.chart-container {
  position: relative;
  height: 200px;
  width: 100%;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn-mimak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}

.btn-mimak-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}

.btn-mimak-primary:hover {
  background: #5b52e8;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-mimak-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-mimak-secondary:hover {
  background: var(--bg-base);
  border-color: #c4c4c4;
}

.btn-mimak-danger {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
}

.btn-mimak-danger:hover {
  background: #fee2e2;
}

.btn-mimak-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* ─── Forms ────────────────────────────────────────────────── */
.form-mimak-group {
  margin-bottom: 20px;
}

.form-mimak-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.form-mimak-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-mimak-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-mimak-control::placeholder {
  color: var(--text-muted);
}

select.form-mimak-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

/* ─── Blog Editor (Zen Style) ─────────────────────────────── */
.zen-editor-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.zen-editor-toolbar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.zen-title-input {
  width: 100%;
  padding: 20px 28px 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  border: none;
  outline: none;
  font-family: var(--font-sans);
  background: transparent;
  line-height: 1.3;
}

.zen-title-input::placeholder {
  color: #d1d5db;
}

.zen-slug-row {
  padding: 0 28px 12px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.zen-slug-row span {
  font-family: var(--font-mono);
}

#quill-editor {
  min-height: 420px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.ql-container.ql-snow {
  border: none !important;
}
.ql-toolbar.ql-snow {
  border: none !important;
  background: #fafafa;
}

.ql-editor {
  padding: 20px 28px !important;
}
.ql-editor p {
  margin-bottom: 1em;
}
.ql-editor h1,
.ql-editor h2,
.ql-editor h3 {
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 1.5em 0 0.5em;
}
.ql-editor blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ─── Tables ────────────────────────────────────────────────── */
.mimak-table {
  width: 100%;
  border-collapse: collapse;
}

.mimak-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}

.mimak-table td {
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.mimak-table tr:hover td {
  background: #fafafa;
}
.mimak-table tbody tr:last-child td {
  border-bottom: none;
}

/* ─── Badges ────────────────────────────────────────────────── */
.badge-mimak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-published {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.badge-draft {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}
.badge-category {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-type {
  background: var(--accent-doc-light);
  color: var(--accent-doc);
}

/* ─── Alerts ────────────────────────────────────────────────── */
.alert-mimak {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.alert-error {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert-info {
  background: var(--accent-light);
  color: #312e81;
  border: 1px solid var(--accent-mid);
}

/* ─── Login Page ────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 48px;
  width: 100%;
  max-width: 420px;
}

.login-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-logo span {
  color: var(--accent);
}

.login-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ─── Companies Grid ──────────────────────────────────────── */
.company-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.company-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  transform: translateY(-2px);
}

.company-card.active-company {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.company-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.company-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.company-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* ─── Pagination ────────────────────────────────────────────── */
.mimak-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  padding: 20px 0 8px;
}

.page-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

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

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-muted);
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 13px;
}

/* ─── Image Upload ──────────────────────────────────────────── */
.image-upload-zone {
  border: 2px dashed var(--border-input);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-base);
}

.image-upload-zone:hover,
.image-upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.image-upload-zone input[type="file"] {
  display: none;
}

.image-preview-wrap {
  position: relative;
  display: inline-block;
  margin-top: 12px;
}

.image-preview {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.image-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid #fff;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mimak-sidebar {
    transform: translateX(-100%);
  }

  .mimak-sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  }

  .mimak-main {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding: 16px;
  }
  .login-card {
    padding: 32px 24px;
  }
  .stat-value {
    font-size: 26px;
  }
}

/* ─── Utility ────────────────────────────────────────────────── */
.text-accent {
  color: var(--accent) !important;
}
.text-muted-sm {
  font-size: 12px;
  color: var(--text-muted);
}
.fw-700 {
  font-weight: 700;
}
.gap-8 {
  gap: 8px;
}
.d-flex-center {
  display: flex;
  align-items: center;
}
.ml-auto {
  margin-left: auto;
}

/* Smooth hover on rows */
.hover-row {
  transition: background var(--transition);
}
.hover-row:hover {
  background: #f9fafb;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
