/* ============================================
   AGENDAPRO - THEME SYSTEM
   ============================================ */

:root {
  /* Cores Vibrantes - Rosa/Neon */
  --neon-pink: #FF2D92;
  --neon-pink-light: #FF6BB3;
  --neon-pink-dark: #D61A7A;
  --hot-pink: #FF1493;
  --magenta: #FF00FF;
  --rose-neon: #FF4081;
  
  /* Roxos vibrantes */
  --neon-purple: #B829F7;
  --neon-purple-light: #D68AFF;
  --deep-purple: #7C4DFF;
  --electric-violet: #8B5CF6;
  
  /* Cores complementares */
  --neon-cyan: #00F5FF;
  --neon-blue: #2979FF;
  --neon-orange: #FF6B35;
  --neon-yellow: #FFE600;
  --neon-green: #00E676;
  
  /* Dark theme base */
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-tertiary: #1A1A25;
  --bg-elevated: #222230;
  --bg-card: linear-gradient(145deg, #1A1A25 0%, #252535 100%);
  --bg-glass: rgba(26, 26, 37, 0.8);
  
  /* Texto */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #FF2D92 0%, #B829F7 50%, #2979FF 100%);
  --gradient-pink: linear-gradient(135deg, #FF2D92 0%, #FF6BB3 100%);
  --gradient-purple: linear-gradient(135deg, #B829F7 0%, #7C4DFF 100%);
  --gradient-cyan: linear-gradient(135deg, #00F5FF 0%, #2979FF 100%);
  --gradient-warm: linear-gradient(135deg, #FF6B35 0%, #FF2D92 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,45,146,0.1) 0%, rgba(184,41,247,0.1) 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(255,45,146,0.15) 0%, transparent 70%);
  
  /* Efeitos */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-neon: 0 0 30px rgba(255,45,146,0.3);
  --shadow-neon-purple: 0 0 30px rgba(184,41,247,0.3);
  --shadow-neon-cyan: 0 0 20px rgba(0,245,255,0.3);
  
  /* Bordas */
  --border-subtle: rgba(255,255,255,0.1);
  --border-glow: rgba(255,45,146,0.3);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Transições */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme */
[data-theme="light"] {
  --bg-primary: #F8F5FA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F0EDF4;
  --bg-elevated: #FFFFFF;
  --bg-card: linear-gradient(145deg, #FFFFFF 0%, #F8F5FA 100%);
  --bg-glass: rgba(255, 255, 255, 0.9);
  
  --text-primary: #1A0B2E;
  --text-secondary: rgba(26, 11, 46, 0.7);
  --text-tertiary: rgba(26, 11, 46, 0.5);
  --text-muted: rgba(26, 11, 46, 0.4);
  
  --gradient-card: linear-gradient(145deg, rgba(255,45,146,0.05) 0%, rgba(184,41,247,0.05) 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(255,45,146,0.1) 0%, transparent 70%);
  
  --shadow-sm: 0 2px 8px rgba(26,11,46,0.08);
  --shadow-md: 0 4px 20px rgba(26,11,46,0.1);
  --shadow-lg: 0 8px 40px rgba(26,11,46,0.12);
  --shadow-neon: 0 4px 20px rgba(255,45,146,0.2);
  
  --border-subtle: rgba(26,11,46,0.08);
  --border-glow: rgba(255,45,146,0.2);
}

/* ============================================
   RESET E BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html, body {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background animado */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255,45,146,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(184,41,247,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(0,245,255,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 5px var(--neon-pink), 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink); }
  50% { box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-scale { animation: fadeInScale 0.4s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.4s ease forwards; }
.animate-slide-right { animation: slideInRight 0.4s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-bounce { animation: bounce 2s ease-in-out infinite; }
.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ============================================
   BOTÕES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  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);
  background-size: 200% 200%;
  color: white;
  box-shadow: var(--shadow-neon);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon), 0 10px 40px rgba(255,45,146,0.4);
  background-position: 100% 0;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--neon-pink);
  color: var(--neon-pink);
}

.btn-outline:hover {
  background: var(--neon-pink);
  color: white;
  box-shadow: var(--shadow-neon);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

.btn-gradient-pink { background: var(--gradient-pink); color: white; box-shadow: 0 4px 20px rgba(255,45,146,0.3); }
.btn-gradient-purple { background: var(--gradient-purple); color: white; box-shadow: 0 4px 20px rgba(184,41,247,0.3); }
.btn-gradient-cyan { background: var(--gradient-cyan); color: white; box-shadow: 0 4px 20px rgba(0,245,255,0.3); }

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 0 4px rgba(255,45,146,0.1), var(--shadow-neon);
  background: var(--bg-elevated);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input-icon {
  position: relative;
}

.form-input-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-input-icon .form-input {
  padding-left: 48px;
}

/* Toggle switch */
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle-input {
  display: none;
}

.toggle-slider {
  width: 52px;
  height: 28px;
  background: var(--bg-tertiary);
  border-radius: 14px;
  position: relative;
  transition: var(--transition-base);
  border: 2px solid var(--border-subtle);
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: var(--transition-base);
}

.toggle-input:checked + .toggle-slider {
  background: var(--gradient-pink);
  border-color: var(--neon-pink);
}

.toggle-input:checked + .toggle-slider::after {
  left: 26px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.toggle-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
  border-color: var(--border-glow);
}

.card:hover::before {
  opacity: 1;
}

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

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-title i {
  color: var(--neon-pink);
}

.card-glow {
  position: relative;
}

.card-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-glow);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.card-glow:hover::after {
  opacity: 1;
}

/* Glass card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px 32px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.sidebar-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: var(--shadow-neon);
  animation: gradientShift 3s ease infinite;
}

.sidebar-logo-text {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  padding: 0 16px;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 6px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
}

.sidebar-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
  border-radius: 0 4px 4px 0;
  transition: height 0.3s;
}

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

.sidebar-nav-item.active {
  background: var(--gradient-card);
  color: var(--neon-pink);
  border: 1px solid var(--border-glow);
}

.sidebar-nav-item.active::before {
  height: 60%;
}

.sidebar-nav-item i {
  width: 22px;
  height: 22px;
}

.sidebar-footer {
  padding: 20px 24px 0;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-user-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-neon-purple);
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-theme-toggle {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 12px;
}

/* Main Content */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px;
}

/* ============================================
   HEADER
   ============================================ */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.page-title-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 400;
}

/* ============================================
   STATS
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-pink);
  margin-bottom: 20px;
  border: 1px solid var(--border-glow);
}

.stat-card-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0,230,118,0.1);
  color: var(--neon-green);
}

.stat-card-change.negative {
  background: rgba(255,20,147,0.1);
  color: var(--hot-pink);
}

/* ============================================
   APPOINTMENTS
   ============================================ */

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appointment-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.appointment-card:hover {
  transform: translateX(8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-neon);
}

.appointment-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 16px;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glow);
}

.appointment-time-hour {
  font-size: 24px;
  font-weight: 800;
  color: var(--neon-pink);
  line-height: 1;
}

.appointment-time-ampm {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.appointment-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow-neon);
}

.appointment-info {
  flex: 1;
  min-width: 0;
}

.appointment-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.appointment-service {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.appointment-service i {
  color: var(--neon-pink);
}

.appointment-professional {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.appointment-status {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid transparent;
}

.appointment-status.confirmed {
  background: rgba(0,230,118,0.1);
  color: var(--neon-green);
  border-color: rgba(0,230,118,0.3);
}

.appointment-status.pending {
  background: rgba(255,230,0,0.1);
  color: var(--neon-yellow);
  border-color: rgba(255,230,0,0.3);
}

.appointment-status.cancelled {
  background: rgba(255,20,147,0.1);
  color: var(--hot-pink);
  border-color: rgba(255,20,147,0.3);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-pink {
  background: rgba(255,45,146,0.1);
  color: var(--neon-pink);
  border-color: rgba(255,45,146,0.3);
}

.badge-purple {
  background: rgba(184,41,247,0.1);
  color: var(--neon-purple);
  border-color: rgba(184,41,247,0.3);
}

.badge-cyan {
  background: rgba(0,245,255,0.1);
  color: var(--neon-cyan);
  border-color: rgba(0,245,255,0.3);
}

.badge-green {
  background: rgba(0,230,118,0.1);
  color: var(--neon-green);
  border-color: rgba(0,230,118,0.3);
}

/* ============================================
   FILTER TABS
   ============================================ */

.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-tab:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.filter-tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-neon);
}

/* ============================================
   TOAST
   ============================================ */

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.3);
  animation: slideInRight 0.3s ease;
  min-width: 340px;
  max-width: 450px;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast.success::before { background: var(--neon-green); }
.toast.error::before { background: var(--hot-pink); }
.toast.warning::before { background: var(--neon-yellow); }

.toast-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon.success {
  background: rgba(0,230,118,0.1);
  color: var(--neon-green);
}

.toast-icon.error {
  background: rgba(255,20,147,0.1);
  color: var(--hot-pink);
}

.toast-content {
  flex: 1;
}

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

.toast-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-base);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(255,45,146,0.1);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  max-height: 60vh;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 28px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  background: var(--bg-primary);
}

.login-left {
  flex: 1;
  background: linear-gradient(135deg, rgba(255,45,146,0.1) 0%, rgba(184,41,247,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.login-illustration {
  position: relative;
  z-index: 1;
  text-align: center;
}

.login-illustration-emoji {
  font-size: 120px;
  margin-bottom: 32px;
  filter: drop-shadow(0 10px 40px rgba(255,45,146,0.3));
  animation: float 3s ease-in-out infinite;
}

.login-illustration h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-illustration p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.6;
}

.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  background: var(--bg-secondary);
}

.login-card {
  width: 100%;
  max-width: 440px;
}

.login-logo {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
  font-size: 36px;
  box-shadow: var(--shadow-neon);
  animation: gradientShift 3s ease infinite;
}

.login-logo h1 {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-logo p {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 16px;
}

.login-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.login-divider {
  text-align: center;
  margin: 28px 0;
  position: relative;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
}

.login-divider span {
  background: var(--bg-tertiary);
  padding: 0 16px;
  position: relative;
  color: var(--text-muted);
  font-size: 14px;
}

.login-demo {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   ONBOARDING WIZARD
   ============================================ */

.wizard-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wizard-header {
  text-align: center;
  margin-bottom: 40px;
}

.wizard-header h1 {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.wizard-header p {
  color: var(--text-secondary);
  font-size: 18px;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}

.wizard-step {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 2px solid var(--border-subtle);
  transition: var(--transition-base);
}

.wizard-step.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-neon);
  transform: scale(1.1);
}

.wizard-step.completed {
  background: var(--neon-green);
  color: white;
  border-color: transparent;
}

.wizard-step-line {
  width: 60px;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.wizard-step-line.completed {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

.wizard-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  flex: 1;
  overflow-y: auto;
  max-height: calc(100dvh - 300px);
}

.wizard-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.wizard-content .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* Service suggestions */
.service-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.service-suggestion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-base);
}

.service-suggestion:hover {
  border-color: var(--neon-pink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}

.service-suggestion.selected {
  border-color: var(--neon-pink);
  background: rgba(255,45,146,0.1);
  box-shadow: var(--shadow-neon);
}

.service-suggestion.selected .service-suggestion-icon {
  background: var(--gradient-pink);
  color: white;
}

.service-suggestion-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-pink);
  transition: var(--transition-base);
}

.service-suggestion-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* Working hours table */
.working-hours-table {
  width: 100%;
  border-collapse: collapse;
}

.working-hours-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.day-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* API Key Box */
.api-key-box {
  background: linear-gradient(145deg, #1a0b2e 0%, #2d1b4e 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-neon);
  position: relative;
  overflow: hidden;
}

.api-key-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.api-key-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.api-key-value {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 15px;
  color: var(--neon-pink);
  word-break: break-all;
  line-height: 1.6;
}

.api-key-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.api-key-copy:hover {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
}

.api-key-copy.copied {
  background: var(--neon-green);
  border-color: var(--neon-green);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.section.active {
  display: block;
}

/* ============================================
   LOADING
   ============================================ */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--neon-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--neon-pink);
  font-size: 48px;
  border: 1px solid var(--border-glow);
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 16px;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateX(8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-neon);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.service-info {
  flex: 1;
}

.service-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.service-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.service-actions {
  display: flex;
  gap: 10px;
}

/* ============================================
   PROFESSIONAL CARDS
   ============================================ */

.professional-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: var(--transition-base);
}

.professional-card:hover {
  transform: translateX(8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-neon-purple);
}

.professional-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
  box-shadow: var(--shadow-neon-purple);
}

/* ============================================
   CALENDAR
   ============================================ */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-header {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  position: relative;
}

.calendar-day:hover {
  background: var(--bg-elevated);
  border-color: var(--border-glow);
}

.calendar-day.today {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-neon);
}

.calendar-day.has-events::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  background: var(--neon-pink);
  border-radius: 50%;
}

.calendar-day.other-month {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .login-page {
    flex-direction: column;
  }
  
  .login-left {
    min-height: 240px;
    padding: 32px;
  }
  
  .login-illustration h2 {
    font-size: 32px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .page-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .appointment-card {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .appointment-status {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
  }
  
  .wizard-content {
    padding: 24px;
    max-height: calc(100dvh - 280px);
  }
  
  .wizard-header h1 {
    font-size: 28px;
  }
  
  .service-suggestions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .toast-container {
    left: 16px;
    right: 16px;
    top: 16px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* ============================================
   MOBILE NAV
   ============================================ */

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
  z-index: 100;
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav-items {
  display: flex;
  justify-content: space-around;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.mobile-nav-item.active {
  color: var(--neon-pink);
}

.mobile-nav-item i {
  width: 24px;
  height: 24px;
}

@media (max-width: 1024px) {
  .mobile-nav {
    display: block;
  }
  
  .main-content {
    padding-bottom: 100px;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-pink { color: var(--neon-pink); }
.text-purple { color: var(--neon-purple); }
.text-cyan { color: var(--neon-cyan); }
.text-green { color: var(--neon-green); }
.text-muted { color: var(--text-muted); }

.bg-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glow-pink { box-shadow: var(--shadow-neon); }
.glow-purple { box-shadow: var(--shadow-neon-purple); }
.glow-cyan { box-shadow: var(--shadow-neon-cyan); }

.hidden { display: none !important; }
.opacity-0 { opacity: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-pink);
}

/* Selection */
::selection {
  background: rgba(255,45,146,0.3);
  color: white;
}
