/* ═══════════════════════════════════════════════════════════
   JURORY LCLAW DASHBOARD - CENTRAL STYLESHEET
   Version: 1.0.0
   Author: Jurory Development Team
   
   Bu dosya tüm lclaw dashboard sayfalarında kullanılır.
   Değişiklikler tüm sayfaları etkiler.
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   1. CSS VARIABLES (DARK MODE DEFAULT)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Layout */
  --sidebar-w: 280px;
  --header-h: 70px;
  
  /* Background Colors */
  --bg-primary: #0f1419;
  --bg-elevated: rgba(20, 30, 48, 0.9);
  --bg-card: rgba(30, 41, 59, 0.5);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  /* Border Colors */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Sidebar Colors */
  --sidebar-bg: rgba(15, 20, 35, 0.95);
  --sidebar-hover: rgba(30, 40, 60, 0.9);
  --sidebar-text: #ffffff;
  --sidebar-text-muted: #94a3b8;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-active: rgba(59, 130, 246, 0.15);
  
  /* Brand Colors */
  --primary-color: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-success: linear-gradient(135deg, #10b981, #059669);
  --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
  --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #6366f1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* ═══════════════════════════════════════════════════════════
   2. LIGHT MODE OVERRIDES
   ═══════════════════════════════════════════════════════════ */

body.light-mode {
  --bg-primary: #f8fafc;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.04);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --sidebar-bg: rgba(255, 255, 255, 0.98);
  --sidebar-hover: rgba(248, 250, 252, 0.9);
  --sidebar-text: #1a1a1a;
  --sidebar-text-muted: #64748b;
  --sidebar-border: rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   3. GLOBAL RESETS & BASE STYLES
   ═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Global Font Fix - Apply to ALL elements */
body,
h1, h2, h3, h4, h5, h6,
p, span, div,
button, input, select, textarea,
.card, .btn, .badge,
* {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Header Logo Exception - Preserve Poppins font */
.logo-wrapper .header-brand-name,
span.header-brand-name,
.header-brand-name {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(50px, 4vw, 52px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.5px !important;
  background: linear-gradient(135deg, #fff 0%, #0ea5e9 50%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-decoration: none !important;
}

.logo-wrapper .header-brand-tagline,
span.header-brand-tagline,
.header-brand-tagline {
  font-family: 'Inter', sans-serif !important;
  font-size: 7.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  color: var(--text-muted) !important;
  margin-top: 2px !important;
  opacity: 0.85 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

/* Light Mode Header Logo */
body.light-mode .logo-wrapper .header-brand-name,
body.light-mode span.header-brand-name,
body.light-mode .header-brand-name {
  background: linear-gradient(135deg, #1a1a1a 0%, #0c4a6e 50%, #7c3aed 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.light-mode .logo-wrapper .header-brand-tagline,
body.light-mode span.header-brand-tagline,
body.light-mode .header-brand-tagline {
  color: #6b7280 !important;
}

body {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: var(--header-h) !important;
  transition: background 0.3s ease, color 0.3s ease !important;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   4. GLOBAL ELEMENT STYLES
   ═══════════════════════════════════════════════════════════ */

/* Rounded Corners for All Buttons */
button,
.btn,
.button,
[class*="btn-"],
input[type="button"],
input[type="submit"],
a.button {
  border-radius: var(--radius-md) !important;
}

/* Rounded Corners for Cards */
.card,
.stat-card,
.dashboard-card,
.markartic-stat-card,
[class*="card-"] {
  border-radius: var(--radius-lg) !important;
}

/* Rounded Corners for Badges */
.badge,
.status-badge,
[class*="badge-"] {
  border-radius: var(--radius-sm) !important;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

/* ═══════════════════════════════════════════════════════════
   5. LUCIDE ICONS FIX
   ═══════════════════════════════════════════════════════════ */

/* Base icon placeholder - prevents layout shift */
[data-lucide] {
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  vertical-align: middle !important;
}

/* Sidebar icons - ensure consistent size before/after load */
.sidebar [data-lucide],
.sidebar i[data-lucide],
.sidebar-link [data-lucide],
.sidebar-section-title [data-lucide] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  flex-shrink: 0 !important;
}

/* Sidebar Toggle Button Icon - Override global size */
.sidebar-toggle-btn [data-lucide],
.sidebar-toggle-btn svg,
button.sidebar-toggle-btn [data-lucide],
button.sidebar-toggle-btn svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}

i[data-lucide] {
  display: inline-block !important;
}

/* Button Icon Alignment */
button [data-lucide],
.btn [data-lucide],
a.button [data-lucide] {
  vertical-align: middle !important;
  margin-right: 6px !important;
}

/* Header/Nav Icons - Ensure visibility */
header i, header svg,
nav i, nav svg,
.header-cta i, .header-cta svg,
.nav-link i, .nav-link svg,
.btn-login i, .btn-login svg,
.btn-dashboard i, .btn-dashboard svg,
.btn-logout i, .btn-logout svg,
.theme-toggle i, .theme-toggle svg {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Theme Toggle Icon - White in Dark Mode */
.theme-toggle i,
.theme-toggle svg {
  color: white !important;
  stroke: white !important;
}

/* Theme Toggle Icon - Dark in Light Mode */
body.light-mode .theme-toggle i,
body.light-mode .theme-toggle svg {
  color: #1a1a1a !important;
  stroke: #1a1a1a !important;
}

body.light-mode .theme-toggle:hover i,
body.light-mode .theme-toggle:hover svg {
  color: white !important;
  stroke: white !important;
}

/* ═══════════════════════════════════════════════════════════
   6. HEADER PROTECTION
   Prevents page styles from affecting header
   ═══════════════════════════════════════════════════════════ */

header.modern-header,
header.modern-header * {
  font-size: inherit;
}

header.modern-header .nav-link {
  font-size: 16px !important;
}

header.modern-header .nav-link i,
header.modern-header .nav-link svg {
  width: 18px !important;
  height: 18px !important;
}

header.modern-header .btn-dashboard,
header.modern-header .btn-logout,
header.modern-header .btn-login {
  font-size: 16px !important;
}

header.modern-header .btn-dashboard i,
header.modern-header .btn-dashboard svg,
header.modern-header .btn-logout i,
header.modern-header .btn-logout svg,
header.modern-header .btn-login i,
header.modern-header .btn-login svg {
  width: 18px !important;
  height: 18px !important;
}

header.modern-header .theme-toggle i,
header.modern-header .theme-toggle svg {
  width: 20px !important;
  height: 20px !important;
  color: white !important;
  stroke: white !important;
}

body.light-mode header.modern-header .theme-toggle i,
body.light-mode header.modern-header .theme-toggle svg {
  color: #1a1a1a !important;
  stroke: #1a1a1a !important;
}

body.light-mode header.modern-header .theme-toggle:hover i,
body.light-mode header.modern-header .theme-toggle:hover svg {
  color: white !important;
  stroke: white !important;
}

/* ═══════════════════════════════════════════════════════════
   7. SIDEBAR STYLES
   ═══════════════════════════════════════════════════════════ */

div.sidebar {
  position: fixed !important;
  left: 0 !important;
  top: var(--header-h) !important;
  width: var(--sidebar-w) !important;
  height: calc(100vh - var(--header-h)) !important;
  background: var(--sidebar-bg) !important;
  border-right: 1px solid var(--sidebar-border) !important;
  backdrop-filter: blur(20px) !important;
  z-index: 900 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.3s ease !important;
}

/* Sidebar Hidden State */
div.sidebar.hidden {
  transform: translateX(-100%) !important;
}

/* Profile Section - Fixed at top */
.sidebar-profile {
  padding: 16px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-profile .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-profile .profile-info {
  flex: 1;
  min-width: 0;
}

.sidebar-profile .welcome {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sidebar-text-muted);
  display: block;
}

.sidebar-profile .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--sidebar-text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation - SCROLLABLE */
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--sidebar-border);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--sidebar-text-muted);
}

/* Section Title */
.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sidebar-text-muted);
}

.sidebar-section-title i,
.sidebar-section-title svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* Sidebar Items */
.sidebar-item {
  padding: 0 8px;
  margin-bottom: 2px;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  font-size: 16px;
  font-weight: 500;
}

.sidebar-item a i,
.sidebar-item a svg {
  width: 18px;
  height: 18px;
  color: var(--sidebar-text-muted);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.sidebar-item a:hover {
  background: var(--sidebar-hover);
}

.sidebar-item a:hover i,
.sidebar-item a:hover svg {
  color: var(--primary-color);
}

/* Active State - STRONG SPECIFICITY */
.sidebar-item a.sidebar-link.active,
.sidebar-item a.active,
.sidebar-item.active a,
a.sidebar-link.active,
.sidebar-link.active {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #3b82f6 !important;
  font-weight: 600 !important;
  border-left: 3px solid #3b82f6 !important;
  border-radius: 0 10px 10px 0 !important;
}

.sidebar-item a.sidebar-link.active i,
.sidebar-item a.sidebar-link.active svg,
.sidebar-item a.active i,
.sidebar-item a.active svg,
.sidebar-item.active a i,
.sidebar-item.active a svg,
a.sidebar-link.active i,
a.sidebar-link.active svg,
.sidebar-link.active i,
.sidebar-link.active svg {
  color: #3b82f6 !important;
}

/* Badge in sidebar */
.sidebar-badge {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: white;
}

.sidebar-badge.red {
  background: var(--danger-color);
}

.sidebar-badge.green {
  background: var(--success-color);
}

.sidebar-badge.purple {
  background: var(--gradient-purple);
}

.sidebar-badge.yellow {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Add Profile Highlight */
.sidebar-link.add-profile-highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.sidebar-link.add-profile-highlight:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.25));
  border-color: rgba(139, 92, 246, 0.5);
}

.sidebar-link.add-profile-highlight i,
.sidebar-link.add-profile-highlight svg {
  color: #8b5cf6 !important;
}

/* ═══════════════════════════════════════════════════════════
   8. MAIN CONTENT WRAPPER
   ═══════════════════════════════════════════════════════════ */

.markartic-wrapper {
  background: var(--bg-primary) !important;
  min-height: 100vh !important;
  padding: 32px !important;
  margin-left: var(--sidebar-w) !important;
  width: calc(100% - var(--sidebar-w)) !important;
  box-sizing: border-box !important;
  transition: margin-left 0.3s ease, width 0.3s ease, background 0.3s ease !important;
}

/* When sidebar is hidden */
.sidebar.hidden ~ .markartic-wrapper,
body.sidebar-hidden .markartic-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
}

.markartic-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   9. PAGE HEADER
   ═══════════════════════════════════════════════════════════ */

.markartic-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.markartic-page-header i,
.markartic-page-header svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.markartic-page-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.markartic-page-header p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
}

/* ═══════════════════════════════════════════════════════════
   10. STAT CARDS
   ═══════════════════════════════════════════════════════════ */

.markartic-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.markartic-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  text-decoration: none !important;
}

.markartic-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.markartic-stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.markartic-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
}

.markartic-icon-wrapper i,
.markartic-icon-wrapper svg {
  width: 22px;
  height: 22px;
  color: var(--primary-color);
}

.markartic-stat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.markartic-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.markartic-stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Stat Card Color Variants */
.markartic-stat-card.card-blue .markartic-icon-wrapper {
  background: rgba(59, 130, 246, 0.12);
}
.markartic-stat-card.card-blue .markartic-icon-wrapper i,
.markartic-stat-card.card-blue .markartic-icon-wrapper svg {
  color: #3b82f6;
}

.markartic-stat-card.card-green .markartic-icon-wrapper {
  background: rgba(16, 185, 129, 0.12);
}
.markartic-stat-card.card-green .markartic-icon-wrapper i,
.markartic-stat-card.card-green .markartic-icon-wrapper svg {
  color: #10b981;
}

.markartic-stat-card.card-orange .markartic-icon-wrapper {
  background: rgba(245, 158, 11, 0.12);
}
.markartic-stat-card.card-orange .markartic-icon-wrapper i,
.markartic-stat-card.card-orange .markartic-icon-wrapper svg {
  color: #f59e0b;
}

.markartic-stat-card.card-red .markartic-icon-wrapper {
  background: rgba(239, 68, 68, 0.12);
}
.markartic-stat-card.card-red .markartic-icon-wrapper i,
.markartic-stat-card.card-red .markartic-icon-wrapper svg {
  color: #ef4444;
}

.markartic-stat-card.card-purple .markartic-icon-wrapper {
  background: rgba(139, 92, 246, 0.12);
}
.markartic-stat-card.card-purple .markartic-icon-wrapper i,
.markartic-stat-card.card-purple .markartic-icon-wrapper svg {
  color: #8b5cf6;
}

/* Card Variants - Warning, Success, Error */
.markartic-stat-card.card-warning .markartic-icon-wrapper {
  background: rgba(245, 158, 11, 0.12);
}
.markartic-stat-card.card-warning .markartic-icon-wrapper i,
.markartic-stat-card.card-warning .markartic-icon-wrapper svg {
  color: #f59e0b;
}

.markartic-stat-card.card-success .markartic-icon-wrapper {
  background: rgba(16, 185, 129, 0.12);
}
.markartic-stat-card.card-success .markartic-icon-wrapper i,
.markartic-stat-card.card-success .markartic-icon-wrapper svg {
  color: #10b981;
}

.markartic-stat-card.card-error .markartic-icon-wrapper {
  background: rgba(239, 68, 68, 0.12);
}
.markartic-stat-card.card-error .markartic-icon-wrapper i,
.markartic-stat-card.card-error .markartic-icon-wrapper svg {
  color: #ef4444;
}

/* Section Title */
.markartic-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 24px 0;
  letter-spacing: -0.5px;
}

/* Facts/Gradient Cards Grid */
.markartic-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.markartic-gradient-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.markartic-gradient-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.markartic-gradient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.markartic-card-content {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.markartic-gradient-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.markartic-gradient-icon i,
.markartic-gradient-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.markartic-gradient-info h3 {
  font-size: 40px;
  font-weight: 800;
  color: white;
  margin: 0 0 4px 0;
  line-height: 1;
}

.markartic-gradient-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 500;
}

/* Gradient Colors */
.gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.gradient-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.gradient-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.gradient-red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ═══════════════════════════════════════════════════════════
   11. BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: white !important;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-success);
  color: white !important;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-danger);
  color: white !important;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
}

/* Small Button */
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   12. CARDS
   ═══════════════════════════════════════════════════════════ */

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.content-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-card-title i,
.content-card-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════════════
   13. TABS
   ═══════════════════════════════════════════════════════════ */

.tabs-container {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.tab-btn .count {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   14. FORMS
   ═══════════════════════════════════════════════════════════ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   15. TABLES
   ═══════════════════════════════════════════════════════════ */

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-glass);
}

.data-table td {
  font-size: 14px;
  color: var(--text-primary);
}

.data-table tbody tr:hover {
  background: var(--bg-glass);
}

/* ═══════════════════════════════════════════════════════════
   16. EMPTY STATE
   ═══════════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--bg-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-icon i,
.empty-state-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   17. SIDEBAR OVERLAY (Mobile)
   ═══════════════════════════════════════════════════════════ */

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 899;
  display: none;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   18. MOBILE SIDEBAR MENU
   ═══════════════════════════════════════════════════════════ */

.mobile-sidebar-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 280px;
  height: calc(100vh - 70px);
  background: var(--sidebar-bg);
  backdrop-filter: blur(20px);
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--sidebar-border);
}

.mobile-sidebar-menu.active {
  transform: translateX(0);
}

.mobile-sidebar-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Sidebar Profile */
.mobile-sidebar-profile {
  padding: 16px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.mobile-sidebar-profile .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.mobile-sidebar-profile .profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.mobile-sidebar-profile .welcome {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sidebar-text-muted);
}

.mobile-sidebar-profile .name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Sidebar Nav */
.mobile-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.mobile-sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.mobile-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.mobile-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-sidebar-section {
  margin-bottom: 16px;
}

.mobile-sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sidebar-text-muted);
}

.mobile-sidebar-section-title i,
.mobile-sidebar-section-title svg {
  width: 14px;
  height: 14px;
}

.mobile-sidebar-item {
  padding: 0 8px;
}

.mobile-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  font-size: 16px;
  font-weight: 500;
}

.mobile-sidebar-link i,
.mobile-sidebar-link svg {
  width: 18px;
  height: 18px;
  color: var(--sidebar-text-muted);
  flex-shrink: 0;
}

.mobile-sidebar-link:hover {
  background: var(--sidebar-hover);
}

.mobile-sidebar-link:hover i,
.mobile-sidebar-link:hover svg {
  color: var(--primary-color);
}

.mobile-sidebar-link.active {
  background: var(--sidebar-active);
  color: var(--primary-color);
  font-weight: 600;
}

.mobile-sidebar-link.active i,
.mobile-sidebar-link.active svg {
  color: var(--primary-color);
}

.mobile-sidebar-badge {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: white;
}

.mobile-sidebar-badge.red {
  background: var(--danger-color);
  color: white;
}

.mobile-sidebar-badge.purple {
  background: var(--gradient-purple);
  color: white;
}

.mobile-sidebar-badge.green {
  background: var(--success-color);
  color: white;
}

.mobile-sidebar-badge.yellow {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

/* Mobile Sidebar Footer */
.mobile-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.mobile-sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.mobile-sidebar-footer-link:hover {
  background: var(--sidebar-hover);
}

.mobile-sidebar-footer-link i,
.mobile-sidebar-footer-link svg {
  width: 18px;
  height: 18px;
  color: var(--sidebar-text-muted);
}

.mobile-sidebar-footer-link.logout {
  color: #ef4444;
}

.mobile-sidebar-footer-link.logout i,
.mobile-sidebar-footer-link.logout svg {
  color: #ef4444;
}

.mobile-sidebar-footer-link i,
.mobile-sidebar-footer-link svg {
  width: 20px;
  height: 20px;
}

.mobile-sidebar-footer-link.logout {
  color: #ef4444;
}

.mobile-sidebar-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--sidebar-hover);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mobile-sidebar-close:hover {
  background: rgba(239, 68, 68, 0.2);
}

.mobile-sidebar-close i,
.mobile-sidebar-close svg {
  width: 18px;
  height: 18px;
  color: var(--sidebar-text-muted);
}

.mobile-sidebar-close:hover i,
.mobile-sidebar-close:hover svg {
  color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════
   19. MOBILE MENU BUTTON
   ═══════════════════════════════════════════════════════════ */

.mobile-menu-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 998;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.mobile-menu-btn i,
.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ═══════════════════════════════════════════════════════════
   20. SIDEBAR TOGGLE BUTTON (Desktop)
   ═══════════════════════════════════════════════════════════ */

.sidebar-toggle-btn {
  position: fixed;
  left: 266px;
  top: 86px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 901;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-toggle-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.sidebar-toggle-btn i,
.sidebar-toggle-btn svg,
.sidebar-toggle-btn [data-lucide],
button.sidebar-toggle-btn i,
button.sidebar-toggle-btn svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}

body.sidebar-hidden .sidebar-toggle-btn {
  left: 10px;
}

/* ═══════════════════════════════════════════════════════════
   21. RESPONSIVE - TABLET
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .markartic-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════
   21.5. RESPONSIVE - DESKTOP (Hide mobile elements)
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 992px) {
  /* Hide mobile hamburger menu on desktop */
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   22. RESPONSIVE - MOBILE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  /* Hide desktop sidebar */
  div.sidebar {
    top: 0 !important;
    height: 100vh !important;
    transform: translateX(-100%) !important;
    z-index: 10000 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3) !important;
  }
  
  div.sidebar.mobile-open {
    transform: translateX(0) !important;
  }
  
  /* Full width content */
  .markartic-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 20px !important;
  }
  
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Mobile Hamburger Menu - Light Blue */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
  }
  
  .mobile-menu-toggle span {
    width: 28px !important;
    height: 3px !important;
    background: #60a5fa !important;
    border-radius: 3px;
  }
  
  /* Hide sidebar toggle */
  .sidebar-toggle-btn {
    display: none !important;
  }
  
  /* Responsive stats */
  .markartic-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .markartic-stat-card {
    padding: 16px;
  }
  
  .markartic-stat-value {
    font-size: 28px;
  }
  
  /* Page header */
  .markartic-page-header h1 {
    font-size: 24px;
  }
  
  /* Tabs */
  .tabs-container {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 576px) {
  .markartic-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .markartic-facts-grid {
    grid-template-columns: 1fr;
  }
  
  .markartic-gradient-info h3 {
    font-size: 32px;
  }
  
  .markartic-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .markartic-page-header h1 {
    font-size: 22px;
  }
}

/* ═══════════════════════════════════════════════════════════
   23. PRINT STYLES
   ═══════════════════════════════════════════════════════════ */

@media print {
  div.sidebar,
  .mobile-menu-btn,
  .sidebar-toggle-btn,
  .mobile-sidebar-menu,
  .mobile-sidebar-overlay {
    display: none !important;
  }
  
  .markartic-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 20px !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   24. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }

.bg-primary { background: var(--bg-primary) !important; }
.bg-card { background: var(--bg-card) !important; }
.bg-glass { background: var(--bg-glass) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 8px !important; }
.p-2 { padding: 16px !important; }
.p-3 { padding: 24px !important; }
.p-4 { padding: 32px !important; }

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }

.align-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }

.gap-1 { gap: 8px !important; }
.gap-2 { gap: 16px !important; }
.gap-3 { gap: 24px !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }