/* Sterling Dental Clinic Management System CSS */
/* Modern Dark Theme with Glassmorphism and Unique Layouts */

:root {
  /* Dark Theme Colors */
  --primary-bg: #0a0e1a;
  --secondary-bg: #1a1f2e;
  --tertiary-bg: #2a3142;
  --accent-color: #00d4ff;
  --accent-secondary: #7c3aed;
  --text-primary: #ffffff;
  --text-secondary: #b4bcd0;
  --text-muted: #6b7280;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-secondary: 0 4px 16px rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, #00d4ff, #7c3aed);
  --gradient-secondary: linear-gradient(135deg, #1a1f2e, #2a3142);
  
  /* Light Theme Colors */
  --light-primary-bg: #ffffff;
  --light-secondary-bg: #f8fafc;
  --light-tertiary-bg: #e2e8f0;
  --light-text-primary: #1a202c;
  --light-text-secondary: #4a5568;
  --light-text-muted: #a0aec0;
  --light-border-color: rgba(0, 0, 0, 0.1);
  --light-glass-bg: rgba(255, 255, 255, 0.8);
  --light-glass-border: rgba(0, 0, 0, 0.1);
  --light-shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.1);
  --light-shadow-secondary: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Light Theme */
body.light-theme {
  --primary-bg: var(--light-primary-bg);
  --secondary-bg: var(--light-secondary-bg);
  --tertiary-bg: var(--light-tertiary-bg);
  --text-primary: var(--light-text-primary);
  --text-secondary: var(--light-text-secondary);
  --text-muted: var(--light-text-muted);
  --border-color: var(--light-border-color);
  --glass-bg: var(--light-glass-bg);
  --glass-border: var(--light-glass-border);
  --shadow-primary: var(--light-shadow-primary);
  --shadow-secondary: var(--light-shadow-secondary);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-secondary);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-primary);
}

.theme-toggle i {
  font-size: 20px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.logo-section {
  padding: 30px 25px;
  border-bottom: 1px solid var(--border-color);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.logo-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-section p {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 3D Tooth Container */
.tooth-3d-container {
  height: 150px;
  margin: 20px;
  border-radius: 15px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tooth-3d-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--accent-color), transparent);
  animation: rotate 4s linear infinite;
  opacity: 0.1;
}

#tooth3d {
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation Menu */
.nav-menu {
  flex: 1;
  padding: 20px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  margin: 2px 15px;
  border-radius: 10px;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  opacity: 0.1;
}

.nav-item:hover::before,
.nav-item.active::before {
  width: 100%;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-primary);
  border-left-color: var(--accent-color);
  transform: translateX(5px);
}

.nav-item i {
  width: 20px;
  margin-right: 15px;
  font-size: 16px;
}

.nav-item span {
  font-weight: 500;
  font-size: 14px;
}

/* Clinic Info */
.clinic-info {
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  margin: 15px;
  border-radius: 15px;
}

.staff-quick-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.staff-member i {
  width: 16px;
  color: var(--accent-color);
}

/* Main Content */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header */
.header {
  height: 80px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background: var(--glass-bg);
}

#page-title {
  font-size: 28px;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-bell {
  position: relative;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.notification-bell:hover {
  background: var(--glass-bg);
}

.notification-bell i {
  font-size: 20px;
  color: var(--text-secondary);
}

.notification-count {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--accent-color);
  color: var(--primary-bg);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: var(--glass-bg);
}

.user-profile img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
}

.user-profile span {
  font-weight: 500;
  color: var(--text-primary);
}

.user-profile i {
  color: var(--text-muted);
  font-size: 12px;
  transition: all 0.3s ease;
}

.user-profile:hover i {
  color: var(--accent-color);
  transform: rotate(180deg);
}

/* User Menu */
.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: var(--shadow-primary);
  z-index: 1000;
  margin-top: 8px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.user-menu-item:hover {
  background: var(--secondary-bg);
  color: var(--text-primary);
}

.user-menu-item i {
  width: 16px;
  color: var(--accent-color);
  font-size: 14px;
}

/* Content Sections */
.content-section {
  display: none;
  padding: 30px;
  flex: 1;
}

.content-section.active {
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stat-icon i {
  font-size: 24px;
  color: white;
}

.stat-content h3 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Dashboard Charts */
.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

/* Chart Cards - Fixed Layout */
.chart-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chart-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
}

.chart-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chart-card:hover::before {
  opacity: 1;
}

/* Chart Card Header */
.chart-card-header {
  padding: 20px 25px 15px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.chart-card-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-card-header h3 i {
  color: var(--accent-color);
  font-size: 16px;
}

/* Period Selector */
.chart-period-selector {
  display: flex;
  background: var(--tertiary-bg);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}

.period-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.period-btn:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.period-btn.active {
  background: var(--accent-color);
  color: #ffffff;
  font-weight: 600;
}

/* Chart Content */
.chart-content {
  padding: 20px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-canvas-wrapper {
  height: 220px;
  position: relative;
}

.chart-canvas-wrapper canvas {
  max-height: 100%;
  width: 100% !important;
  height: 100% !important;
}

/* Appointments Card Specific Styles */
.appointments-card .chart-content {
  flex-direction: row;
  align-items: center;
  gap: 25px;
}

.appointments-card .chart-canvas-wrapper {
  flex: 0 0 200px;
  height: 200px;
}

.chart-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: var(--secondary-bg);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.stat-item:hover {
  background: var(--tertiary-bg);
  transform: translateX(5px);
}

.stat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-dot.completed { background: #00d4ff; }
.stat-dot.pending { background: #ffc107; }
.stat-dot.confirmed { background: #28c76f; }
.stat-dot.cancelled { background: #ea5455; }

.stat-label {
  flex: 1;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.stat-value {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}

/* Revenue Card Specific Styles */
.revenue-card .chart-content {
  gap: 25px;
}

.revenue-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.revenue-item {
  background: var(--secondary-bg);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.revenue-item:hover {
  background: var(--tertiary-bg);
  transform: translateY(-2px);
}

.revenue-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.revenue-amount {
  display: block;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.revenue-change {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.revenue-change.positive {
  color: #28c76f;
}

.revenue-change.negative {
  color: #ea5455;
}

/* Chart Actions */
.chart-actions {
  padding: 15px 25px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  min-width: 120px;
}

.action-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  transform: translateY(-1px);
}

.action-btn i {
  font-size: 12px;
}

/* Legacy chart-container support */
.chart-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
  transition: all 0.3s ease;
}

.chart-container:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-secondary);
}

.chart-container h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

/* Services Section */
.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 10px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 212, 255, 0.4);
}

.service-animation-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.service-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.service-content {
  position: relative;
  padding: 210px 25px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--glass-bg) 0%, var(--secondary-bg) 100%);
  backdrop-filter: blur(20px);
}

.service-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
  border: 3px solid var(--primary-bg);
}

.service-icon i {
  font-size: 24px;
  color: #ffffff;
}

.service-content h3 {
  margin: 0 0 15px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.service-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  flex: 1;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}

.feature-tag {
  background: var(--tertiary-bg);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.service-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 20px;
  background: var(--glass-bg);
  padding: 10px 15px;
  border-radius: 25px;
  border: 1px solid var(--border-color);
}

.service-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Services Call-to-Action */
.services-cta {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.cta-content h3 {
  color: var(--text-primary);
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content .btn {
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 25px;
  min-width: 200px;
}

/* Staff Section */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.staff-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.staff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.staff-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  border-color: rgba(0, 212, 255, 0.5);
}

.staff-card:hover::before {
  opacity: 1;
}

.staff-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  overflow: hidden;
  border-radius: 25px 25px 0 0;
  z-index: 0;
}

.staff-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.staff-image-container {
  position: relative;
  z-index: 2;
  margin: 120px auto 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-image-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--primary-bg);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.staff-image-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: rotateGradient 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.staff-card:hover .staff-image-placeholder::before {
  opacity: 1;
}

.staff-image-placeholder i {
  font-size: 40px;
  color: #ffffff;
  z-index: 2;
  position: relative;
}

.staff-image-placeholder.nurse {
  background: linear-gradient(135deg, #28c76f, #20bf6b);
  box-shadow: 0 15px 35px rgba(40, 199, 111, 0.3);
}

.staff-image-placeholder.receptionist {
  background: linear-gradient(135deg, #ffc107, #ffb700);
  box-shadow: 0 15px 35px rgba(255, 193, 7, 0.3);
}

.staff-image-placeholder.orthodontist {
  background: linear-gradient(135deg, #7c3aed, #6c2bd9);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.3);
}

.staff-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--primary-bg);
  z-index: 3;
}

.staff-status.online {
  background: #28c76f;
  box-shadow: 0 0 0 3px rgba(40, 199, 111, 0.3);
  animation: pulse 2s infinite;
}

.staff-status.away {
  background: #ffc107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.staff-status.offline {
  background: #ea5455;
  box-shadow: 0 0 0 3px rgba(234, 84, 85, 0.3);
}

.staff-content {
  padding: 20px 25px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, var(--glass-bg) 20%);
  backdrop-filter: blur(10px);
}

.staff-content h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.staff-role {
  display: block;
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.staff-bio {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
  flex: 1;
}

.staff-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.specialty-tag {
  background: var(--tertiary-bg);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.specialty-tag:hover {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.staff-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--secondary-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.staff-stats .stat-item {
  text-align: center;
  padding: 10px;
  background: var(--glass-bg);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.staff-stats .stat-item:hover {
  background: var(--tertiary-bg);
  transform: translateY(-2px);
}

.staff-stats .stat-number {
  display: block;
  color: var(--accent-color);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.staff-stats .stat-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.staff-contact {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--secondary-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.2s ease;
}

.contact-item:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.contact-item i {
  color: var(--accent-color);
  width: 16px;
  text-align: center;
}

.staff-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.staff-actions .action-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}

.staff-actions .action-btn.primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.staff-actions .action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.staff-actions .action-btn.secondary {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.staff-actions .action-btn.secondary:hover {
  background: var(--tertiary-bg);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Staff Summary */
.staff-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.summary-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.summary-card:hover::before {
  transform: scaleX(1);
}

.summary-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.summary-icon i {
  font-size: 24px;
  color: #ffffff;
}

.summary-content h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.summary-number {
  color: var(--accent-color);
  font-size: 28px;
  font-weight: 700;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* Recent Activities */
.recent-activities {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
}

.recent-activities h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--secondary-bg);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: var(--tertiary-bg);
  transform: translateX(5px);
}

.activity-item i {
  width: 20px;
  color: var(--accent-color);
}

.activity-item span {
  flex: 1;
  color: var(--text-secondary);
  font-size: 14px;
}

.activity-item time {
  color: var(--text-muted);
  font-size: 12px;
}

/* Calendar */
.calendar-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-header h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.btn-nav {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.btn-nav:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.05);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.calendar-day:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.calendar-day.today {
  background: var(--accent-color);
  color: white;
}

.calendar-day.has-appointment {
  background: var(--accent-secondary);
  color: white;
}

/* Appointments */
.appointments-list {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
}

.appointments-list h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.appointment-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.appointment-card {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--secondary-bg);
  border-radius: 15px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.appointment-card:hover {
  background: var(--tertiary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-secondary);
}

.appointment-time {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 16px;
}

.appointment-patient h4 {
  color: var(--text-primary);
  margin-bottom: 5px;
  font-size: 16px;
}

.appointment-patient p {
  color: var(--text-muted);
  font-size: 14px;
}

.appointment-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.appointment-status.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.appointment-status.confirmed {
  background: rgba(40, 199, 111, 0.2);
  color: #28c76f;
  border: 1px solid rgba(40, 199, 111, 0.3);
}

.appointment-status.completed {
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-color);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.appointment-actions {
  display: flex;
  gap: 10px;
}

/* Search Bar */
.search-bar {
  position: relative;
  max-width: 400px;
  flex: 1;
}

.search-bar i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1;
}

.search-bar input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* Tables */
.patients-table {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--secondary-bg);
}

th {
  padding: 20px 15px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

tbody tr:hover {
  background: var(--glass-bg);
}

td {
  padding: 15px;
  color: var(--text-secondary);
  font-size: 14px;
}

.status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status.active {
  background: rgba(40, 199, 111, 0.2);
  color: #28c76f;
}

.status.inactive {
  background: rgba(234, 84, 85, 0.2);
  color: #ea5455;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-secondary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--secondary-bg);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--secondary-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-primary);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.close {
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  padding: 25px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-toggle {
    display: block;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Chart Card Adjustments */
  .chart-card {
    min-height: 450px;
  }
  
  .chart-card-header {
    padding: 15px 20px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .chart-card-header h3 {
    font-size: 16px;
  }
  
  .appointments-card .chart-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .appointments-card .chart-canvas-wrapper {
    flex: none;
    height: 180px;
  }
  
  .chart-canvas-wrapper {
    height: 180px;
  }
  
  .revenue-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .revenue-item {
    padding: 12px;
  }
  
  .revenue-amount {
    font-size: 16px;
  }
  
  .chart-actions {
    padding: 12px 20px 15px;
    flex-direction: column;
  }
  
  .action-btn {
    min-width: unset;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }
  
  .content-section {
    padding: 20px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    min-height: 420px;
  }
  
  .service-animation-bg {
    height: 150px;
  }
  
  .service-content {
    padding: 160px 20px 20px;
  }
  
  .service-content h3 {
    font-size: 18px;
  }
  
  .service-content p {
    font-size: 13px;
  }
  
  .service-price {
    font-size: 18px;
    padding: 8px 12px;
  }
  
  .services-cta {
    padding: 30px 20px;
  }
  
  .cta-content h3 {
    font-size: 20px;
  }
  
  .cta-content p {
    font-size: 14px;
  }
  
  .staff-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .staff-card {
    min-height: 550px;
  }
  
  .staff-card-bg {
    height: 150px;
  }
  
  .staff-image-container {
    margin: 80px auto 0;
    width: 100px;
    height: 100px;
  }
  
  .staff-image-placeholder {
    width: 100px;
    height: 100px;
  }
  
  .staff-image-placeholder i {
    font-size: 35px;
  }
  
  .staff-content {
    padding: 15px 20px 20px;
  }
  
  .staff-content h3 {
    font-size: 20px;
  }
  
  .staff-bio {
    font-size: 13px;
  }
  
  .staff-stats {
    padding: 12px;
    gap: 10px;
  }
  
  .staff-stats .stat-number {
    font-size: 18px;
  }
  
  .staff-contact {
    padding: 12px;
  }
  
  .contact-item {
    font-size: 12px;
  }
  
  .staff-actions .action-btn {
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .staff-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .summary-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .summary-icon {
    width: 50px;
    height: 50px;
  }
  
  .summary-icon i {
    font-size: 20px;
  }
  
  .summary-number {
    font-size: 24px;
  }
  
  .appointment-card {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  
  /* Mobile Chart Cards */
  .chart-card {
    min-height: 400px;
  }
  
  .chart-period-selector {
    padding: 3px;
  }
  
  .period-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .chart-content {
    padding: 15px 20px;
  }
  
  .chart-stats {
    gap: 12px;
  }
  
  .stat-item {
    padding: 10px 12px;
  }
  
  .stat-label {
    font-size: 13px;
  }
  
  .stat-value {
    font-size: 14px;
  }
  
  .revenue-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .revenue-item {
    padding: 10px;
  }
  
  .revenue-label {
    font-size: 11px;
  }
  
  .revenue-amount {
    font-size: 14px;
  }
  
  .action-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .patients-table {
    overflow-x: auto;
  }
  
  table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .theme-toggle {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  .theme-toggle i {
    font-size: 16px;
  }
  
  #page-title {
    font-size: 20px;
  }
  
  .header-right {
    gap: 10px;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.visible { display: block !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

