/* Dashboard Modern Styles */

:root {
  --forest-900: #0b3d2e;
  --forest-800: #0f5240;
  --forest-700: #146651;
  --forest-50: #f0f9f6;
  --ochre-600: #c9a227;
  --ochre-500: #d4ad31;
  --ochre-50: #fef9e7;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-50: #faf5ff;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --emerald-50: #f0fdf4;
  --emerald-100: #dcfce7;
  --emerald-200: #bbf7d0;
  --emerald-300: #86efac;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --red-100: #fee2e2;
  --red-600: #dc2626;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #f0f9f6 0%, #fef9e7 50%, #f9fafb 100%);
  background-attachment: fixed;
  color: var(--gray-900);
  min-height: 100vh;
}

/* Main Layout */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  gap: 0;
  background-attachment: fixed;
}

/* Sidebar */
.dashboard-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0f5240 0%, #0b3d2e 100%);
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  border-right: 4px solid var(--ochre-500);
  z-index: 100;
}

.sidebar-header {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(212, 173, 49, 0.2);
  background: linear-gradient(180deg, rgba(15, 82, 64, 0.8) 0%, rgba(11, 61, 46, 0.8) 100%);
}

.sidebar-profile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4ad31, #c9a227);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 173, 49, 0.3);
}

.profile-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: white;
}

.profile-info p {
  font-size: 12px;
  color: rgba(212, 173, 49, 0.9);
  margin: 6px 0 0 0;
  font-weight: 500;
}

.profile-info > div {
  margin-top: 8px;
}

.sidebar-nav {
  flex: 1;
  margin-top: 20px;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.sidebar-nav a:hover {
  background-color: rgba(212, 173, 49, 0.15);
  color: white;
  padding-left: 24px;
}

.sidebar-nav a.active {
  background-color: rgba(212, 173, 49, 0.25);
  color: white;
  font-weight: 600;
  box-shadow: inset -4px 0 0 var(--ochre-500);
  padding-left: 20px;
}

.sidebar-nav a i {
  margin-right: 14px;
  width: 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover i {
  transform: translateX(2px);
}

.sidebar-divider {
  border: none;
  border-top: 1px solid rgba(212, 173, 49, 0.15);
  margin: 12px 0;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(212, 173, 49, 0.15);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Main Content */
.dashboard-content {
  margin-left: 280px;
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

/* Header */
.dashboard-header {
  margin-bottom: 40px;
  animation: fadeIn 0.5s ease-out;
}

.dashboard-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #0f5240 0%, #d4ad31 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-header p {
  color: var(--gray-600);
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

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

.stat-card {
  background: white;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  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;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f5240, #d4ad31);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  box-shadow: 0 12px 24px rgba(15, 82, 64, 0.12);
  transform: translateY(-4px);
}

.stat-card:hover::before {
  transform: translateX(0);
}

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

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  font-size: 20px;
  color: #0f5240;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #0f5240;
  margin-bottom: 12px;
}

.stat-link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #d4ad31;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.stat-link:hover {
  gap: 10px;
  color: #c9a227;
}

/* Action Cards Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.action-card {
  background: white;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.action-card:hover {
  box-shadow: 0 16px 32px rgba(15, 82, 64, 0.15);
  transform: translateY(-4px);
}

.action-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-card h3 i {
  font-size: 24px;
  color: #0f5240;
}

.action-card-badge {
  margin-left: auto;
  background-color: #ef4444;
  color: white;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-card-description {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.action-btn-emerald {
  background-color: #0f5240;
  color: white;
}

.action-btn-emerald:hover {
  background-color: #0b3d2e;
}

.action-btn-ochre {
  background-color: #d4ad31;
  color: white;
  font-weight: 700;
}

.action-btn-ochre:hover {
  background-color: #c9a227;
  box-shadow: 0 8px 16px rgba(212, 173, 49, 0.4);
}

.action-btn-purple {
  background-color: #a855f7;
  color: white;
}

.action-btn-purple:hover {
  background-color: #9333ea;
}

.action-btn-green {
  background-color: #16a34a;
  color: white;
}

.action-btn-green:hover {
  background-color: #15803d;
}

.action-btn-blue {
  background-color: #3b82f6;
  color: white;
}

.action-btn-blue:hover {
  background-color: #2563eb;
}

/* Content Sections */
.content-section {
  background: white;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 28px;
  animation: fadeIn 0.5s ease-out;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}

.section-title i {
  font-size: 24px;
  color: #0f5240;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.form-input,
.form-textarea,
.form-select {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #0f5240;
  box-shadow: 0 0 0 4px rgba(15, 82, 64, 0.1);
}

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

.form-submit {
  background: linear-gradient(135deg, #0f5240 0%, #146651 100%);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(15, 82, 64, 0.3);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 82, 64, 0.4);
}

.form-status {
  font-size: 14px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid;
}

.form-status.success {
  background-color: #dcfce7;
  color: #065f46;
  border-color: #10b981;
}

.form-status.error {
  background-color: #fee2e2;
  color: #7f1d1d;
  border-color: #dc2626;
}

.form-hint {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 8px;
}

/* Appointment List */
.appointment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appointment-item {
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  background: white;
}

.appointment-item.today {
  background: linear-gradient(135deg, #f0f9f6 0%, #fef9e7 100%);
  border-color: #d4ad31;
  box-shadow: 0 4px 12px rgba(212, 173, 49, 0.15);
}

.appointment-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.appointment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.appointment-coach {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 16px;
}

.appointment-badge {
  background: linear-gradient(135deg, #0f5240, #146651);
  color: white;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.appointment-details {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.appointment-details i {
  margin-right: 8px;
  width: 18px;
  color: #0f5240;
}

.appointment-actions {
  display: flex;
  gap: 12px;
}

.appointment-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.appointment-btn.join {
  background: linear-gradient(135deg, #0f5240, #146651);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 82, 64, 0.3);
}

.appointment-btn.join:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 82, 64, 0.4);
}

.appointment-btn.details {
  background-color: transparent;
  color: #0f5240;
  border: 2px solid #0f5240;
}

.appointment-btn.details:hover {
  background-color: #f0f9f6;
}

/* Recommendations Grid */
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.recommendation-card {
  padding: 20px;
  border-radius: 10px;
  border: 2px solid var(--gray-200);
  background: white;
  transition: all 0.3s ease;
}

.recommendation-card:hover {
  border-color: #0f5240;
  box-shadow: 0 8px 16px rgba(15, 82, 64, 0.12);
  transform: translateY(-2px);
}

.recommendation-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--gray-900);
}

.recommendation-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--gray-600);
}

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

.empty-state-icon {
  font-size: 80px;
  color: var(--gray-200);
  margin-bottom: 20px;
}

.empty-state-text {
  color: var(--gray-600);
  font-size: 16px;
  margin-bottom: 28px;
}

.empty-state-button {
  background: linear-gradient(135deg, #0f5240, #146651);
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 82, 64, 0.3);
}

.empty-state-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 82, 64, 0.4);
}

/* Accent Classes */
.accent-card {
  border-top: 4px solid #d4ad31;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(212, 173, 49, 0.15);
}

.accent-text {
  color: #d4ad31;
  font-weight: 700;
}

.accent-bg {
  background: linear-gradient(135deg, #fef9e7 0%, rgba(212, 173, 49, 0.1) 100%);
  border: 2px solid #d4ad31;
}

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

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

.fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in {
  animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .dashboard-content {
    padding: 32px;
  }

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

  .action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .dashboard-content {
    margin-left: 0;
    padding: 24px;
  }

  .dashboard-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 0;
  }

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

  .action-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-header h1 {
    font-size: 28px;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }

  .appointment-header {
    flex-direction: column;
    gap: 12px;
  }

  .appointment-actions {
    flex-direction: column;
  }

  .appointment-btn {
    width: 100%;
    text-align: center;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
  }

  .sidebar-nav {
    margin-top: 12px;
  }

  .sidebar-nav a {
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .dashboard-content {
    padding: 16px;
  }

  .content-section {
    padding: 20px;
  }

  .dashboard-header {
    margin-bottom: 24px;
  }

  .dashboard-header h1 {
    font-size: 22px;
  }

  .stat-value {
    font-size: 28px;
  }

  .section-title {
    font-size: 18px;
  }

  .stat-card,
  .action-card {
    padding: 20px;
  }

  .recommendations-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-2 {
  margin-top: 8px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.space-y-6 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Print Styles */
@media print {
  .dashboard-sidebar,
  .action-card,
  .form-submit {
    display: none;
  }

  .dashboard-content {
    margin-left: 0;
    padding: 0;
  }

  .content-section {
    box-shadow: none;
    border: 1px solid #e5e7eb;
    page-break-inside: avoid;
  }
}
