/* Encrypt CMS - Modern Dashboard Prototype Stylesheet */

:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Primary & Brand Colors */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  /* Neutral / Background Colors - Light Mode */
  --bg-app: #f4f7fb;
  --bg-card: #ffffff;
  --bg-card-hover: #fafcff;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f8fafc;
  --border-color: #e5e9f0;
  --border-light: #f1f5f9;
  
  /* Text Colors - Light Mode */
  --text-main: #0f172a;
  --text-heading: #1e293b;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Form & Input Tokens - Light Mode */
  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;
  --border-input: #cbd5e1;
  --placeholder-color: #94a3b8;
  
  /* Status Colors */
  --status-not-activated-bg: #fee2e2;
  --status-not-activated-text: #dc2626;
  --status-success-bg: #dcfce7;
  --status-success-text: #16a34a;
  
  /* Accent Metric Colors */
  --accent-blue-bg: #eff6ff;
  --accent-blue-icon: #2563eb;
  --accent-green-bg: #ecfdf5;
  --accent-green-icon: #10b981;
  --accent-purple-bg: #f5f3ff;
  --accent-purple-icon: #8b5cf6;
  --accent-orange-bg: #fff7ed;
  --accent-orange-icon: #f97316;

  /* Sidebar Colors (Dark by default, consistent with screenshot) */
  --sidebar-bg: #0c111d;
  --sidebar-border: #1a2233;
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #f1f5f9;
  --sidebar-item-hover: rgba(255, 255, 255, 0.05);
  --sidebar-active-bg: #2563eb;
  --sidebar-active-text: #ffffff;
  --sidebar-card-bg: rgba(18, 24, 38, 0.85);
  --sidebar-card-border: rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 30px -4px rgba(15, 23, 42, 0.12);

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  --sidebar-width: 260px;
  --header-height: 70px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Dark Mode Overrides for Main Area */
[data-theme="dark"] {
  --bg-app: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #162032;
  --bg-surface: #111827;
  --bg-surface-subtle: #1a2234;
  --border-color: #1f293d;
  --border-light: #1e293b;
  --text-main: #f8fafc;
  --text-heading: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.4);

  /* Form & Input Tokens - Dark Mode */
  --bg-input: #0f172a;
  --bg-input-focus: #0f172a;
  --border-input: #334155;
  --placeholder-color: #64748b;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* App Layout */
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  border-right: 1px solid var(--sidebar-border);
  transition: transform var(--transition-normal);
  background-image: 
    linear-gradient(to top, rgba(12, 17, 29, 0.96) 0%, rgba(12, 17, 29, 0.4) 30%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='none'%3E%3Cpath d='M-20 300L120 180L190 240L280 140L420 300Z' fill='%23162032' opacity='0.7'/%3E%3Cpath d='M40 300L180 200L250 250L340 170L440 300Z' fill='%231f2b42' opacity='0.5'/%3E%3Cpath d='M-10 300L90 230L160 270L240 210L360 300Z' fill='%23101828' opacity='0.9'/%3E%3C/svg%3E");
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Sidebar Brand Header */
.sidebar-header {
  height: var(--header-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.brand-badge-icon {
  color: #475569;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Custom scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--sidebar-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.nav-item-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-icon {
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-item:hover {
  background-color: var(--sidebar-item-hover);
  color: var(--sidebar-text-hover);
}

.nav-item:hover .nav-icon {
  opacity: 1;
}

.nav-item.active {
  background-color: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.nav-item.active .nav-icon {
  opacity: 1;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
  opacity: 0.6;
}

.nav-group.expanded .nav-chevron {
  transform: rotate(180deg);
}

/* Submenu */
.submenu {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.25rem 0 0.25rem 2.5rem;
}

.nav-group.expanded .submenu {
  display: flex;
}

.submenu-item {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-size: 0.83rem;
  font-weight: 450;
  transition: all var(--transition-fast);
  display: block;
}

.submenu-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.submenu-item.active {
  color: #60a5fa;
  font-weight: 600;
}

/* Sidebar Footer / Brand Badge */
.sidebar-footer {
  padding: 1.25rem 0.85rem;
  position: relative;
  z-index: 2;
}

.brand-promo-card {
  background: var(--sidebar-card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--sidebar-card-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.brand-badge-symbol {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  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: #38bdf8;
  flex-shrink: 0;
}

.brand-promo-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
}

.brand-promo-text p {
  font-size: 0.72rem;
  color: #64748b;
}

/* Backdrop for Mobile Sidebar */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 45;
}

/* =========================================
   MAIN WRAPPER & TOP HEADER
   ========================================= */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-app);
  transition: margin-left var(--transition-normal);
}

.top-header {
  height: var(--header-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-subtle);
}

.search-container {
  position: relative;
  width: 290px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  gap: 0.6rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background-color: var(--bg-surface);
}

.search-icon {
  color: var(--text-subtle);
  width: 17px;
  height: 17px;
}

.search-input {
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.875rem;
  outline: none;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-subtle);
}

.kbd-shortcut {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.header-action-btn:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
}

.notif-badge-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast);
}

.user-profile-btn:hover {
  background-color: var(--bg-surface-subtle);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
}

.user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.user-chevron {
  color: var(--text-muted);
  width: 14px;
  height: 14px;
}

/* =========================================
   DASHBOARD CONTENT
   ========================================= */
.dashboard-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 1400px;
  width: 100%;
}

/* Greeting Row */
.greeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.greeting-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.waving-hand {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.5s infinite;
}

@keyframes wave {
  0% { transform: rotate( 0.0deg) }
  10% { transform: rotate(14.0deg) }
  20% { transform: rotate(-8.0deg) }
  30% { transform: rotate(14.0deg) }
  40% { transform: rotate(-4.0deg) }
  50% { transform: rotate(10.0deg) }
  60% { transform: rotate( 0.0deg) }
  100% { transform: rotate( 0.0deg) }
}

.greeting-text p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.date-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.date-icon-box {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-details .date-string {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
}

.date-details .date-message {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================
   STATISTICS CARDS GRID
   ========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.stat-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

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

.stat-icon.blue {
  background-color: var(--accent-blue-bg);
  color: var(--accent-blue-icon);
}

.stat-icon.green {
  background-color: var(--accent-green-bg);
  color: var(--accent-green-icon);
}

.stat-icon.purple {
  background-color: var(--accent-purple-bg);
  color: var(--accent-purple-icon);
}

.stat-icon.orange {
  background-color: var(--accent-orange-bg);
  color: var(--accent-orange-icon);
}

.stat-meta .stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-meta .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  margin-top: 0.2rem;
}

.stat-link {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
  transition: opacity var(--transition-fast);
}

.stat-link:hover {
  opacity: 0.8;
}

.stat-link.blue { color: var(--accent-blue-icon); }
.stat-link.green { color: var(--accent-green-icon); }
.stat-link.purple { color: var(--accent-purple-icon); }
.stat-link.orange { color: var(--accent-orange-icon); }

/* Decorative Sparkline Chart Background */
.stat-sparkline {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 120px;
  height: 65px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* =========================================
   TWO-COLUMN SECTION: HERO BANNER & LICENSE
   ========================================= */
.hero-license-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 1.5rem;
}

/* Hero "Your CMS is Ready" Banner */
.hero-banner-card {
  background: linear-gradient(135deg, #eaf2fd 0%, #e1ecfa 100%);
  border: 1px solid #d4e3f8;
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .hero-banner-card {
  background: linear-gradient(135deg, #131d2e 0%, #16243b 100%);
  border-color: #1e3352;
}

.hero-banner-content {
  max-width: 58%;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 0.65rem;
}

[data-theme="dark"] .hero-tag {
  color: #60a5fa;
}

.hero-banner-content h3 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .hero-banner-content h3 {
  color: #f8fafc;
}

.hero-banner-content p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .hero-banner-content p {
  color: #94a3b8;
}

.hero-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #334155;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .btn-secondary {
  background-color: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
}

.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: #27354a;
}

/* Hero Graphic Illustration */
.hero-graphic-container {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
  height: 180px;
  pointer-events: none;
}

.mock-window-card {
  width: 230px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transform: perspective(600px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.4s ease;
}

[data-theme="dark"] .mock-window-card {
  background: #1e293b;
  border-color: #334155;
}

.mock-window-header {
  background: #f1f5f9;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .mock-window-header {
  background: #182234;
  border-color: #253349;
}

.mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  opacity: 0.7;
}

.mock-window-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-image-placeholder {
  height: 90px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #3b82f6;
}

[data-theme="dark"] .mock-image-placeholder {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
  color: #60a5fa;
}

.mock-pointer-cursor {
  position: absolute;
  bottom: -6px;
  right: 12px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* License Status Panel */
.license-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.license-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.license-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.license-key-icon-wrapper {
  width: 36px;
  height: 36px;
  background-color: #ecfeff;
  color: #06b6d4;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.license-title-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}

.license-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background-color: var(--status-not-activated-bg);
  color: var(--status-not-activated-text);
}

.license-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.btn-license {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transition: all var(--transition-fast);
}

.btn-license:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.license-learn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.83rem;
  color: var(--primary);
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.license-learn-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* =========================================
   TWO-COLUMN SECTION: RECENT ACTIVITY & SYSTEM OVERVIEW
   ========================================= */
.activity-system-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 1.5rem;
}

/* Recent Activity Card */
.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  min-height: 280px;
}

.activity-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.activity-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.activity-icon-badge {
  width: 38px;
  height: 38px;
  background-color: #eff6ff;
  color: #2563eb;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-header-titles h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}

.activity-header-titles p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-view-all {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-view-all:hover {
  color: var(--text-main);
  border-color: var(--text-subtle);
}

/* Empty State */
.activity-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.empty-icon-box {
  width: 52px;
  height: 52px;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.activity-empty-state h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.activity-empty-state p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 320px;
}

/* System Overview Card */
.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.system-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.system-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.system-label-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.system-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-value {
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.status-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
}

.system-link {
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.system-link:hover {
  color: var(--primary);
}

/* =========================================
   BOTTOM QUICK ACCESS CARDS
   ========================================= */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.quick-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

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

.quick-icon-wrapper.blue { background-color: var(--accent-blue-bg); color: var(--accent-blue-icon); }
.quick-icon-wrapper.green { background-color: var(--accent-green-bg); color: var(--accent-green-icon); }
.quick-icon-wrapper.purple { background-color: var(--accent-purple-bg); color: var(--accent-purple-icon); }
.quick-icon-wrapper.orange { background-color: var(--accent-orange-bg); color: var(--accent-orange-icon); }

.quick-card-top h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
}

.quick-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex: 1;
}

.quick-card-footer {
  display: flex;
  justify-content: flex-end;
  color: var(--text-subtle);
  font-size: 0.95rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.quick-card:hover .quick-card-footer {
  transform: translateX(3px);
  color: var(--primary);
}

/* =========================================
   INTERACTIVE MODALS
   ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: scaleUp 0.2s ease;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 4px;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-subtle);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  margin-bottom: 1.25rem;
}

.modal-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.modal-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.82rem;
  color: #1e40af;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

[data-theme="dark"] .modal-info-box {
  background: #172554;
  border-color: #1e3a8a;
  color: #93c5fd;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 200;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1200px) {
  .hero-license-grid,
  .activity-system-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-banner-content {
    max-width: 65%;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.active {
    display: block;
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  .search-container {
    width: 200px;
  }

  .user-info {
    display: none;
  }
}

@media (max-width: 680px) {
  .top-header {
    padding: 0 1rem;
  }

  .dashboard-content {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .stats-grid,
  .quick-access-grid {
    grid-template-columns: 1fr;
  }

  .search-container {
    display: none;
  }

  .hero-banner-card {
    padding: 1.5rem;
  }

  .hero-banner-content {
    max-width: 100%;
  }

  .hero-graphic-container {
    display: none;
  }

  .greeting-text h2 {
    font-size: 1.45rem;
  }
}
