:root {
  /* Colors */
  --bg-color: #0a0e27;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151b3b 0%, #0a0e27 80%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.1);
  
  --primary-color: #0099ff;
  --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
  --primary-hover: linear-gradient(135deg, #0099ff 0%, #00d4ff 100%);
  --secondary-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Typography */
  --font-family-body: 'Inter', sans-serif;
  --font-family-heading: 'Outfit', sans-serif;

  /* Spacing */
  --sidebar-width: 260px;
  --navbar-height: 64px;
  --content-padding: 24px;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 15px rgba(0, 212, 255, 0.3);
}

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

body {
  font-family: var(--font-family-body);
  background: var(--bg-gradient);
  background-color: var(--bg-color);
  background-attachment: fixed;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00d4ff;
}

.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.ml-2 { margin-left: 8px; }
.mr-2 { margin-right: 8px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* Glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); } 
  70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); } 
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); } 
}
@keyframes pulse-red { 
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } 
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } 
}
@keyframes pulse-green { 
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 
  70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); } 
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } 
}
@keyframes shimmer { 
  0% { background-position: -1000px 0; } 
  100% { background-position: 1000px 0; } 
}

.pulse-anim { animation: pulse 2s infinite; }
.pulse-anim-red { animation: pulse-red 2s infinite; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 153, 255, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger-color);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.btn-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success-color);
}
.btn-success:hover { background: rgba(16, 185, 129, 0.2); }

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}

.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Forms */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 13px;
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family-body);
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.2);
}

.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-color); color: var(--text-primary); }

.input-sm { padding: 6px 10px; font-size: 12px; }

/* Floating Labels */
.floating-label { position: relative; }
.floating-label input { padding: 20px 16px 8px; }
.floating-label label {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s ease;
  pointer-events: none;
  margin: 0;
}
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 11px;
  color: var(--primary-color);
}

.password-group .toggle-password {
  position: absolute;
  right: 12px;
  top: 12px;
}

.error-text {
  color: var(--danger-color);
  font-size: 13px;
  margin-bottom: 15px;
  text-align: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary { background: rgba(0, 153, 255, 0.1); color: var(--primary-color); border: 1px solid rgba(0, 153, 255, 0.2); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--info-color); border: 1px solid rgba(59, 130, 246, 0.2); }

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }

/* Login Page */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  animation: slideInUp 0.6s ease;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
  animation: float 10s infinite linear;
  z-index: 0;
  pointer-events: none;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.login-logo h1 {
  font-size: 28px;
  margin-bottom: 4px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-logo p {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.login-card form { position: relative; z-index: 1; }

.demo-hint {
  text-align: center;
  margin-top: 15px;
  font-size: 12px;
  color: var(--text-muted);
}

.powered-by {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

@keyframes float {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* App Layout */
#app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
#sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-right: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
}

.sidebar-header {
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--glass-border);
}

.logo-area { display: flex; align-items: center; gap: 8px; }
.logo-area h2 { margin: 0; font-size: 18px; color: #fff; font-weight: 800; }
.logo-area span:not(.badge) { color: var(--primary-color); }

.business-selector-wrapper {
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dropdown-trigger:hover { background: rgba(255, 255, 255, 0.05); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 16px;
  right: 16px;
  border-radius: var(--border-radius-sm);
  padding: 8px;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  gap: 8px;
}

.dropdown-item:hover, .dropdown-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.nav-links {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-divider {
  margin: 16px 12px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-icon { margin-right: 12px; font-size: 16px; width: 20px; text-align: center; }

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 153, 255, 0.15) 0%, transparent 100%);
  color: var(--primary-color);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-gradient);
  border-radius: 0 4px 4px 0;
}

.nav-item .badge { margin-left: auto; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--glass-border);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info { flex: 1; overflow: hidden; }
.user-info h4 { margin: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-muted); display: block; }

/* Main Content */
#main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Navbar */
#top-navbar {
  height: var(--navbar-height);
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-padding);
  border-bottom: 1px solid var(--glass-border);
}

.top-left { display: flex; align-items: center; gap: 16px; }
.top-left h2 { margin: 0; font-size: 20px; }

.top-center { flex: 1; max-width: 500px; margin: 0 20px; }
.search-bar {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 20px;
  height: 40px;
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0 10px;
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }

.top-right { display: flex; align-items: center; gap: 20px; }

.notification-btn { position: relative; }
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  padding: 2px 5px;
  font-size: 10px;
  border-radius: 10px;
}

.user-menu-wrapper { position: relative; }

/* Banner */
.banner {
  padding: 10px var(--content-padding);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.banner-warning { background: rgba(245, 158, 11, 0.2); border-bottom: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning-color); }
.banner-text { flex: 1; }

/* Page Container */
#page-container {
  flex: 1;
  padding: var(--content-padding);
  overflow-y: auto;
}

.page-section { animation: fadeIn 0.4s ease; }

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

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
}
.stat-card .stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.05);
}
.stat-card .stat-value { font-size: 28px; font-weight: 700; margin-bottom: 4px; font-family: var(--font-family-heading); }
.stat-card .stat-label { color: var(--text-secondary); font-size: 13px; }
.stat-card .stat-trend {
  display: flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 8px; font-weight: 600;
}

/* Dashboard Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 1024px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* Cards */
.card { border-radius: var(--border-radius-md); overflow: hidden; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
}
.card-header h3 { margin: 0; font-size: 16px; }
.card-body { padding: 20px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Charts Area */
.chart-container { padding: 20px; height: 300px; position: relative; }
.chart-container canvas { width: 100% !important; height: 100% !important; }

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.search-input { position: relative; flex: 1; min-width: 200px; }
.search-input span { position: absolute; left: 12px; top: 12px; }
.search-input input {
  width: 100%; padding: 10px 12px 10px 36px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 6px;
  color: #fff; outline: none;
}
.search-input input:focus { border-color: var(--primary-color); }

/* Tables */
.table-container { border-radius: var(--border-radius-md); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td { padding: 14px 20px; border-bottom: 1px solid var(--glass-border); }
.data-table th { font-weight: 600; color: var(--text-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; white-space: nowrap; }
.data-table th:hover { color: var(--text-primary); }
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.data-table td { font-size: 14px; }
.data-table .actions { display: flex; gap: 8px; }

/* Empty States */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 48px; display: block; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }

/* Skeleton Loaders */
.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,0.02) !important; }
.skeleton::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0.05) 20%, rgba(255,255,255,0.1) 60%, rgba(255,255,255,0));
  animation: shimmer 2s infinite;
}
.skel-text { height: 12px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 8px; }

/* Kanban Board */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; min-height: 500px; align-items: flex-start; }
.kanban-column {
  min-width: 300px; max-width: 300px;
  background: rgba(0,0,0,0.2); border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  display: flex; flex-direction: column; max-height: 70vh;
}
.kanban-header {
  padding: 16px; border-bottom: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600;
}
.kanban-body { padding: 12px; flex: 1; overflow-y: auto; min-height: 100px; }
.kanban-card {
  background: var(--glass-bg); padding: 16px; border-radius: var(--border-radius-sm);
  margin-bottom: 12px; border: 1px solid var(--glass-border); cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kanban-card:active { cursor: grabbing; transform: scale(0.98); }
.kanban-card:hover { border-color: rgba(255,255,255,0.3); }
.kanban-card.dragging { opacity: 0.5; }
.kanban-column.drag-over { background: rgba(255,255,255,0.05); border-color: var(--primary-color); }

.card-title { font-weight: 600; margin-bottom: 4px; font-size: 15px; }
.card-company { color: var(--text-secondary); font-size: 12px; margin-bottom: 12px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.1); }

/* Activity Feed */
.activity-feed { list-style: none; padding: 16px; margin: 0; max-height: 400px; overflow-y: auto; }
.activity-item { display: flex; gap: 12px; margin-bottom: 16px; position: relative; }
.activity-item:not(:last-child)::after {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: -16px;
  width: 2px; background: var(--glass-border);
}
.activity-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--glass-bg); display: flex; align-items: center; justify-content: center; z-index: 1; }
.activity-content { flex: 1; }
.activity-text { font-size: 13px; }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Widget List */
.widget-list { padding: 12px; }
.widget-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: rgba(0,0,0,0.2); border-radius: var(--border-radius-sm); margin-bottom: 8px;
}

/* Modals */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal {
  width: 100%; max-width: 500px; max-height: 90vh;
  display: flex; flex-direction: column;
  animation: slideInUp 0.3s ease;
}
.modal.modal-lg { max-width: 800px; }
.modal-header { padding: 20px; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--glass-border); display: flex; justify-content: flex-end; gap: 12px; }

/* Toasts */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 16px 20px; border-radius: var(--border-radius-sm);
  display: flex; align-items: center; gap: 12px; min-width: 300px;
  animation: slideInRight 0.3s ease; position: relative; overflow: hidden;
}
.toast-success { background: rgba(16, 185, 129, 0.9); color: #fff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.toast-error { background: rgba(239, 68, 68, 0.9); color: #fff; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
.toast-info { background: rgba(59, 130, 246, 0.9); color: #fff; }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: rgba(0,0,0,0.3); width: 100%; animation: toastProgress 4s linear forwards; }
@keyframes toastProgress { to { width: 0; } }

/* Tabs */
.tabs { display: flex; gap: 8px; padding: 8px; border-radius: var(--border-radius-md); margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
  background: transparent; border: none; padding: 10px 20px; color: var(--text-secondary);
  font-weight: 500; cursor: pointer; border-radius: var(--border-radius-sm); font-size: 14px; white-space: nowrap;
}
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.tab-btn.active { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* Marketing Compose */
.compose-card { padding: 24px; }
.template-vars { margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.btn-var { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--text-primary); padding: 4px 8px; border-radius: 4px; font-size: 11px; cursor: pointer; }
.btn-var:hover { background: rgba(255,255,255,0.2); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.recipient-selector {
  padding: 12px; background: rgba(0,0,0,0.2); border: 1px dashed var(--glass-border); border-radius: 6px;
  cursor: pointer; text-align: center; color: var(--text-secondary);
}

/* Attendance */
.clock-btn { width: 200px; height: 200px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; margin: 20px auto; gap: 12px; transition: transform 0.2s; }
.clock-btn:active { transform: scale(0.95); }
.clock-btn.clock-in { background: radial-gradient(circle, #10b981 0%, #047857 100%); box-shadow: 0 0 30px rgba(16, 185, 129, 0.5); }
.clock-btn.clock-out { background: radial-gradient(circle, #ef4444 0%, #b91c1c 100%); box-shadow: 0 0 30px rgba(239, 68, 68, 0.5); }
.clock-btn.completed { background: radial-gradient(circle, #6b7280 0%, #374151 100%); cursor: not-allowed; opacity: 0.7; }
.clock-icon { font-size: 48px; }

/* Calendar */
.calendar-container { padding: 20px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-day-header { text-align: center; font-weight: 600; color: var(--text-secondary); padding: 10px; }
.cal-day {
  aspect-ratio: 1; background: rgba(0,0,0,0.2); border-radius: 8px; border: 1px solid var(--glass-border);
  padding: 8px; display: flex; flex-direction: column; cursor: pointer; position: relative;
}
.cal-day:hover { background: rgba(255,255,255,0.05); }
.cal-day.today { border-color: var(--primary-color); box-shadow: 0 0 10px rgba(0, 153, 255, 0.2); }
.cal-day.other-month { opacity: 0.3; }
.cal-date { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cal-dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Mobile Only Utility */
.mobile-only { display: none; }
@media (max-width: 768px) {
  .mobile-only { display: inline-flex; }
  .hidden-mobile { display: none !important; }
  
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.open {
    transform: translateX(0);
  }
  
  #main-content {
    margin-left: 0;
  }
  
  .stats-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  
  .clock-btn { width: 150px; height: 150px; font-size: 20px; }
  .clock-icon { font-size: 32px; }
}

/* Utilities */
.w-100 { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* Grid Cards Details */
.profile-card, .project-card, .service-card {
  padding: 20px; background: var(--glass-bg); border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
}
.progress-bar-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary-gradient); border-radius: 4px; }
