/* Modern Walking Champions Design System */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Theme - Green (logo) */
:root {
  /* Primary Colors - Better Green Theme */
  --primary: #0f8b8d;
  --primary-dark: #0c6f71;
  --primary-light: #dff3f3;
  
  /* Secondary Colors - Complementary Teal */
  --secondary: #64748b;
  --secondary-dark: #475569;
  --secondary-light: #f1f5f9;
  
  /* Success Colors - Lime Accent */
  --success: #b7d63a;
  --success-dark: #8fad2e;
  --success-light: #e8f4d0;
  
  /* Error Colors - Standard Red */
  --error: #ef4444;
  --error-dark: #dc2626;
  --error-light: #fee2e2;
  
  /* Warning Colors - Orange Accent */
  --warning: #f68c3a;
  --warning-dark: #e67e22;
  --warning-light: #fdebd0;
  
  /* Info Colors - Blue */
  --info: #3b82f6;
  --info-dark: #1d4ed8;
  --info-light: #dbeafe;
  
  /* Neutral Colors - Warm Grays */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Shadows */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Accent Colors - Walking/Fitness Theme */
  --accent-green: #7cb342;
  --accent-blue: #42a5f5;
  --accent-orange: #ff9800;
  --accent-purple: #9c27b0;
  
  /* Logo-specific colors */
  --logo-orange: #F6904D;
  
  /* Background Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-success: linear-gradient(135deg, var(--success), var(--accent-green));
  --gradient-warning: linear-gradient(135deg, var(--warning), var(--accent-orange));
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden; /* prevent horizontal scroll */
  width: 100%;
  height: 100%;
  zoom: 0.67;
  overflow-y: auto;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Firefox fallback - Firefox doesn't support zoom, use transform on body */
@-moz-document url-prefix() {
  html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
  }
  
  body {
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow-x: hidden;
    position: relative;
    zoom: 1;
    transform: scale(0.67);
    transform-origin: top left;
  }
  
  /* Fix sticky positioning in Firefox */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  section, .hero-section, .features-section, .cta-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

/* Navigation Styles */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-light);
  padding: 0.75rem 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

/* Navbar: evenly distributed layout */
.navbar .container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Logo section */
.logo-img {
  height: 48px !important;
  width: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 48px !important;
  max-height: none !important;
  transform: none !important;
  scale: 1 !important;
}

.logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 48px !important;
  min-width: 48px !important;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
}

/* Center navigation links - evenly distributed */
.nav-links {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-links li { 
  flex: 0 0 auto; 
}

.nav-link { 
  white-space: nowrap; 
}

.nav-link {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(15, 139, 141, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 139, 141, 0.15);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 0.75rem;
  font-weight: 600;
}

.nav-link i {
  font-size: 1.1rem;
}

/* Right side - user section */
.user-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-self: end;
}

/* Auth links styling */
.auth-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.auth-links .nav-link {
  background: var(--logo-orange);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(246, 144, 77, 0.3);
}

.auth-links .nav-link:hover {
  background: var(--warning-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(246, 144, 77, 0.4);
}

/* Modern welcome message styling */
.welcome-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gray-50);
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
}

.welcome-text {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
}

.username-display {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Modern logout button */
.logout-btn {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logout-btn:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-800);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-container {
  padding: 1rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-100) 100%);
}

.form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--gray-600);
  font-size: 1rem;
}

/* ===== FORM STYLING ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Ensure no error styling by default */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-light);
}

/* Hide error messages by default */
.error-message {
  background: var(--error-light);
  color: var(--error-dark);
  border: 1px solid var(--error);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
  display: none; /* Hide by default */
}

.error-message.show {
  display: block; /* Only show when explicitly needed */
}

/* Hide success messages by default */
.success-message {
  background: var(--success-light);
  color: var(--success-dark);
  border: 1px solid var(--success);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
  display: none; /* Hide by default */
}

.success-message.show {
  display: block; /* Only show when explicitly needed */
}

.form-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-style: italic;
}

.calculation-info {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--success-light);
  border: 1px solid var(--success);
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.calculation-info small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calculation-info i {
  font-size: 1rem;
}

.success-message {
  background: var(--success-light);
  color: var(--success-dark);
  border: 1px solid var(--success);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.error-message {
  background: var(--error-light);
  color: var(--error-dark);
  border: 1px solid var(--error);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.form-btn {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-btn:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(45, 90, 39, 0.3);
}

.form-btn:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-link {
  display: block;
  text-align: center;
  color: var(--primary);
  text-decoration: none;
  margin: 1rem 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-link:hover {
  text-decoration: underline;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.form-footer a:hover {
  text-decoration: underline;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--gray-700);
}

/* Homepage Styles */
.hero-section {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  left: 0;
  right: 0;
  overflow-x: hidden;
  position: relative;
  display: block;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Welcome message styling */
.welcome-message {
  color: var(--white) !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Logo orange buttons */
.btn-logo-orange {
  background: var(--logo-orange) !important;
  color: var(--white) !important;
  border: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 15px rgba(246, 144, 77, 0.3) !important;
}

.btn-logo-orange:hover {
  background: var(--warning-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(246, 144, 77, 0.4) !important;
}

/* Override default button styles when logo orange is applied */
.btn.btn-logo-orange {
  background: var(--logo-orange) !important;
  color: var(--white) !important;
  border: none !important;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 1.125rem;
}

/* Buttons consistent with logo teal */
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: var(--white);
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0;
  overflow-x: hidden;
  text-align: center;
}

.features-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  overflow-x: hidden;
  text-align: left;
}

/* Ensure sections don't create overflow */
section, .features-container, .hero-section, .cta-container { 
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Override for leaderboard page - make it full width */
body:has(.leaderboards-wrapper) .features-section {
  padding: 0 !important;
  margin: 0 !important;
}

body:has(.leaderboards-wrapper) .features-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.features-header p {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: 1rem;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 4rem 2rem;
  background: var(--gray-900);
  color: var(--white);
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  overflow-x: hidden;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Ensure sections don't create overflow */
section, .features-container, .cta-container { max-width: 100vw; }
/* Hero section should extend full width like navbar */
.hero-section { max-width: 100%; }
/* Leaderboard main section should be full width */
.leaderboard-main-section { max-width: 100% !important; }

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Team Setup Banner - Prominent CTA for new users */
.team-setup-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 2rem;
  margin: 0;
  border-bottom: 3px solid #f59e0b;
}

.team-setup-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.team-setup-icon {
  font-size: 3rem;
  color: #f59e0b;
  background: #fef3c7;
  padding: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-setup-content {
  flex: 1;
  min-width: 250px;
}

.team-setup-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #92400e;
}

.team-setup-content p {
  margin: 0;
  color: #78350f;
  font-size: 1rem;
}

.team-setup-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.team-setup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
  .team-setup-container {
    flex-direction: column;
    text-align: center;
  }
  
  .team-setup-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Progress Section */
.progress-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-100) 100%);
  padding: 3rem 0;
  margin: 2rem 0;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center;
  box-sizing: border-box;
}

.progress-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  text-align: left;
}

.progress-header {
  text-align: center;
  margin-bottom: 2rem;
}

.progress-header h2 {
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.progress-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

.progress-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.progress-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2rem;
}

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

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

.progress-bar-container {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

.progress-text {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #0f8b8d 0%, #0a6b6d 100%);
  border-radius: 16px 16px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-content form {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: var(--white);
  padding: 3rem 2rem 2rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.footer h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
  color: var(--gray-400);
}

/* Prevent large images elsewhere from breaking layout */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    justify-content: center;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ===== ENHANCED TRACKER PAGE STYLING ===== */

.tracker-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Hero Section */
.tracker-hero {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.hero-content {
  text-align: center;
  margin-bottom: 40px;
}

.hero-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Stats Cards */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  color: white;
  padding: 25px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Steps card - Vibrant green */
.stat-card:nth-child(1) {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.stat-card:nth-child(1):hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

/* Minutes card - Warm orange */
.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.stat-card:nth-child(2):hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

/* Distance card - Cool blue */
.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.stat-card:nth-child(3):hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.9;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 5px;
}

/* Content Sections */
.tracker-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-200);
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-icon {
  font-size: 1.5rem;
  color: var(--primary);
  background: var(--gray-50);
  padding: 10px;
  border-radius: 10px;
}

.header-actions {
  display: flex;
  gap: 15px;
}

/* Team Selection Section */
.team-selection-section {
  margin-bottom: 40px;
  padding: 30px;
  background: var(--gray-50);
  border-radius: 15px;
  border: 1px solid var(--gray-200);
}

.team-selector {
  margin-bottom: 20px;
}

.team-selector label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.select-wrapper {
  position: relative;
  max-width: 400px;
}

.select-wrapper select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1rem;
  background: white;
  color: var(--gray-800);
  appearance: none;
  transition: all 0.3s ease;
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.1);
}

.select-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

/* Entries Section */
.entries-section {
  margin-top: 40px;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 139, 141, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 139, 141, 0.4);
}

.btn-secondary {
  background: var(--gray-500);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--gray-600);
  transform: translateY(-1px);
}

/* Table Styling - Enhanced Modern Design */
.entries-table-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.entries-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.entries-table thead {
  background: linear-gradient(135deg, #0f8b8d 0%, #0a6b6d 100%);
}

.entries-table th {
  padding: 18px 16px;
  text-align: left;
  font-weight: 600;
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  white-space: nowrap;
  border-bottom: none;
}

.entries-table th:first-child {
  border-radius: 16px 0 0 0;
}

.entries-table th:last-child {
  border-radius: 0 16px 0 0;
}

/* Column widths - Updated for 7 columns */
.entries-table th:nth-child(1),
.entries-table td:nth-child(1) { width: 14%; min-width: 110px; } /* Date */
.entries-table th:nth-child(2),
.entries-table td:nth-child(2) { width: 16%; min-width: 120px; } /* Team */
.entries-table th:nth-child(3),
.entries-table td:nth-child(3) { width: 12%; min-width: 90px; } /* Distance */
.entries-table th:nth-child(4),
.entries-table td:nth-child(4) { width: 12%; min-width: 90px; } /* Minutes */
.entries-table th:nth-child(5),
.entries-table td:nth-child(5) { width: 14%; min-width: 100px; } /* Steps */
.entries-table th:nth-child(6),
.entries-table td:nth-child(6) { width: 14%; min-width: 100px; } /* Participants */
.entries-table th:nth-child(7),
.entries-table td:nth-child(7) { width: 18%; min-width: 140px; } /* Actions */

.entries-table th i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-right: 6px;
}

/* Sort Button Styles */
.sort-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 4px 8px;
  margin-left: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.sort-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
}

.sort-btn.active {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.sort-btn i {
  font-size: 0.75rem;
}

/* Enhanced Table Cell Styling */
.entries-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #374151;
  font-size: 0.95rem;
  vertical-align: middle;
  background: white;
  transition: background-color 0.15s ease;
}

.entries-table tbody tr {
  transition: all 0.2s ease;
}

.entries-table tbody tr:hover td {
  background-color: #f8fafb;
}

.entries-table tbody tr:nth-child(even) td {
  background-color: #fafbfc;
}

.entries-table tbody tr:nth-child(even):hover td {
  background-color: #f0f4f5;
}

/* Table Cell Content Styling */
.date-content,
.distance-content,
.minutes-content,
.steps-content,
.team-content,
.participants-content {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.date-content {
  font-weight: 600;
  color: #1f2937;
}

.date-content i {
  color: #0f8b8d;
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.team-content {
  font-weight: 500;
  color: #4b5563;
}

.team-content i {
  color: #6366f1;
  font-size: 1.1rem;
}

.distance-content,
.minutes-content,
.steps-content,
.participants-content {
  font-weight: 500;
}

.distance-content i { color: #10b981; }
.minutes-content i { color: #f59e0b; }
.steps-content i { color: #ef4444; }
.participants-content i { color: #8b5cf6; }

.distance-content i,
.minutes-content i,
.steps-content i,
.participants-content i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

/* Metric Values with Units */
.entries-table td .metric-value {
  font-weight: 600;
  color: #1f2937;
}

.entries-table td .metric-unit {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-left: 3px;
}

/* Action Buttons - Enhanced */
.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.action-btn {
  background: none;
  border: 2px solid transparent;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-btn.edit-btn {
  color: #3b82f6;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.action-btn.edit-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.action-btn.delete-btn {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fecaca;
}

.action-btn.delete-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

/* Save/Cancel buttons during editing */
.action-btn.save-btn {
  color: #10b981;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.action-btn.save-btn:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  transform: translateY(-1px);
}

.action-btn.cancel-btn {
  color: #6b7280;
  background: #f9fafb;
  border-color: #e5e7eb;
}

.action-btn.cancel-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Edit Input Styling */
.edit-input {
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100%;
  max-width: 120px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edit-input:focus {
  outline: none;
  border-color: #0f8b8d;
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.15);
}

.edit-input.date-input {
  max-width: 140px;
}

/* Editing state indicator */
.editing-indicator {
  font-size: 0.75rem;
  color: #f59e0b;
  font-style: italic;
  margin-left: 8px;
}

/* Enhanced select styling for tracker page */
.timezone-selector select:hover,
.limit-selector select:hover {
  border-color: #0f8b8d;
}

.timezone-selector select:focus,
.limit-selector select:focus {
  outline: none;
  border-color: #0f8b8d;
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.15);
}

/* Responsive button text */
@media (max-width: 992px) {
  .action-btn span {
    display: none;
  }
  
  .action-btn {
    padding: 8px;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-icon {
  font-size: 4rem;
  color: var(--gray-300);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tracker-container {
    padding: 15px;
  }
  
  .tracker-hero,
  .tracker-content {
    padding: 25px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .header-actions {
    width: 100%;
  }
  
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .entries-table {
    font-size: 0.9rem;
  }
  
  .entries-table th,
  .entries-table td {
    padding: 12px 8px;
  }
  
  .date-content,
  .distance-content,
  .minutes-content,
  .steps-content {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 5px;
  }
  
  .action-btn {
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .tracker-hero,
  .tracker-content {
    padding: 20px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

/* ===== TEAM MANAGEMENT STYLING ===== */

.user-info-section {
  margin-bottom: 2rem;
}

.user-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 2rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 139, 141, 0.3);
}

.user-card i {
  font-size: 3rem;
  opacity: 0.9;
}

.user-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.user-details p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.create-team-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: 15px;
  border: 1px solid var(--gray-200);
}

.team-form {
  max-width: 800px;
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.1);
}

.teams-section {
  margin-bottom: 2rem;
}

.team-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.team-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.team-header h3 {
  margin: 0;
  color: var(--gray-800);
  font-size: 1.3rem;
}

.team-role {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.team-role.admin {
  background: var(--error-light);
  color: var(--error-dark);
}

.team-role.member {
  background: var(--success-light);
  color: var(--success-dark);
}

.team-description {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.team-meta {
  margin-bottom: 1rem;
}

.created-date {
  color: var(--gray-400);
  font-size: 0.9rem;
}

.team-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.empty-teams-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}

.empty-teams-state .empty-icon {
  font-size: 4rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.empty-teams-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.empty-teams-state p {
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== SOCIAL PAGE STYLING ===== */
.loading-teams, .loading-activities {
  text-align: center;
  padding: 2rem;
  color: var(--gray-600);
}

.loading-spinner {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: spin 1s linear infinite;
}

.loading-spinner i {
  color: var(--primary);
}

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

.team-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}

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

.metric-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.metric-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.metric-description {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Edit Team Modal */
.edit-team-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.edit-team-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.edit-team-content h3 {
  margin: 0 0 1.5rem 0;
  color: var(--primary);
}

.edit-team-content .form-group {
  margin-bottom: 1rem;
}

.edit-team-content label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.edit-team-content input,
.edit-team-content textarea,
.edit-team-content select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  font-size: 1rem;
}

.edit-team-content input:focus,
.edit-team-content textarea:focus,
.edit-team-content select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-team-content .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Create Team Modal */
.create-team-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.create-team-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.create-team-content h3 {
  margin: 0 0 1.5rem 0;
  color: var(--primary);
}

.create-team-content .form-group {
  margin-bottom: 1rem;
}

.create-team-content label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.create-team-content input,
.create-team-content textarea,
.create-team-content select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  font-size: 1rem;
}

.create-team-content input:focus,
.create-team-content textarea:focus,
.create-team-content select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.create-team-content .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.team-header h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 1.25rem;
}

.team-role {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.team-role.admin {
  background: var(--error-light);
  color: var(--error);
}

.team-role.member {
  background: var(--success-light);
  color: var(--success);
}

.team-description {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.team-meta {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.team-actions {
  display: flex;
  gap: 0.5rem;
}

.activity-item {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.activity-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.activity-content {
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.activity-actions {
  display: flex;
  gap: 0.5rem;
}

.like-btn, .comment-btn {
  background: var(--gray-100);
  color: var(--gray-700);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.like-btn:hover, .comment-btn:hover {
  background: var(--gray-200);
}

.like-btn.liked {
  background: var(--error);
  color: white;
}

.empty-teams-state, .empty-activities-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--gray-500);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gray-300);
}

.empty-teams-state h3, .empty-activities-state h3 {
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}

/* Empty state for leaderboard */
.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--gray-300);
}

/* ===== LEADERBOARD STYLING ===== */
/* Dual Leaderboard Wrapper */
/* Leaderboard section container */
.leaderboard-main-section {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center;
  padding: 2rem 0;
  background: var(--gray-50);
  box-sizing: border-box;
  display: block;
}

.leaderboards-wrapper {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1600px;
  width: auto;
  margin: 0 auto;
  padding: 2rem;
  background: var(--gray-50);
  box-sizing: border-box;
  overflow-x: hidden;
  text-align: left;
}

.leaderboard-section {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-300);
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.leaderboard-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.leaderboard-title i {
  font-size: 1.5rem;
  color: var(--primary);
}

.leaderboard-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Podium container for top 3 */
.leaderboard-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-50) 100%);
  border-radius: 20px;
  position: relative;
  min-height: 300px;
}

/* Podium steps */
.podium-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 200px;
}

.podium-step-1 {
  order: 2; /* Center */
  z-index: 3;
}

.podium-step-2 {
  order: 1; /* Left */
  z-index: 2;
}

.podium-step-3 {
  order: 3; /* Right */
  z-index: 1;
}

/* 3D Podium base */
.podium-base {
  width: 100%;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 12px 12px 0 0;
  position: relative;
  box-shadow: 
    0 -4px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.podium-step-1 .podium-base {
  height: 120px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.podium-step-2 .podium-base {
  height: 80px;
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.podium-step-3 .podium-base {
  height: 60px;
  background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
}

/* Player info on podium */
.podium-player {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}

.podium-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.podium-step-1 .podium-avatar {
  width: 100px;
  height: 100px;
  font-size: 2.5rem;
  border: 5px solid #FFD700;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.podium-step-2 .podium-avatar,
.podium-step-3 .podium-avatar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.podium-crown {
  position: absolute;
  top: -20px;
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
  animation: float 3s ease-in-out infinite;
}

.podium-step-1 .podium-crown {
  display: block;
}

.podium-step-2 .podium-crown,
.podium-step-3 .podium-crown {
  display: none;
}

.podium-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.podium-step-1 .podium-rank,
.podium-step-2 .podium-rank,
.podium-step-3 .podium-rank {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.podium-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  text-align: center;
}

.podium-step-1 .podium-name,
.podium-step-2 .podium-name,
.podium-step-3 .podium-name {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.podium-score {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.podium-step-1 .podium-score {
  color: #FFD700;
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.podium-step-2 .podium-score,
.podium-step-3 .podium-score {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Regular cards (4th place and below) */
.leaderboard-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-300);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.leaderboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

/* Top 3 special styling - richer colors */
.leaderboard-card:nth-child(1) {
  background: linear-gradient(135deg, #FFE082 0%, #FFC107 100%);
  border-color: #FFA000;
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
}

.leaderboard-card:nth-child(1) .rank-number {
  color: #FF8F00;
  font-weight: 800;
}

.leaderboard-card:nth-child(1) .username {
  color: #FF8F00;
  font-weight: 700;
}

.leaderboard-card:nth-child(2) {
  background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
  border-color: #BDBDBD;
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(189, 189, 189, 0.3);
}

.leaderboard-card:nth-child(2) .rank-number {
  color: #616161;
  font-weight: 800;
}

.leaderboard-card:nth-child(2) .username {
  color: #616161;
  font-weight: 700;
}

.leaderboard-card:nth-child(3) {
  background: linear-gradient(135deg, #E8C5A0 0%, #CD7F32 100%);
  border-color: #B8860B;
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
}

.leaderboard-card:nth-child(3) .rank-number {
  color: #8B4513;
  font-weight: 800;
}

.leaderboard-card:nth-child(3) .username {
  color: #8B4513;
  font-weight: 700;
}

.rank-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0.75rem;
  flex-shrink: 0;
}

.rank-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
  color: var(--gray-700);
  letter-spacing: -0.5px;
}

.medal-icon {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.medal-icon.gold { 
  color: #FFA500;
}
.medal-icon.silver { 
  color: #808080;
}
.medal-icon.bronze { 
  color: #B8860B;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  margin-left: -3rem;
}

.username {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--gray-800);
  text-align: center;
  width: 100%;
  display: block;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  background: var(--gray-100);
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  font-weight: 500;
  color: var(--gray-800);
  transition: all 0.2s ease;
}

.stat:hover {
  background: var(--gray-200);
  border-color: var(--primary);
}

.stat i {
  font-size: 1rem;
  color: var(--primary-dark);
}

.stat.highlight-stat {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 139, 141, 0.3);
}

.stat.highlight-stat i {
  color: white;
}

/* Top 3 stat styling */
.leaderboard-card:nth-child(1) .stat,
.leaderboard-card:nth-child(2) .stat,
.leaderboard-card:nth-child(3) .stat {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--gray-800);
  font-weight: 600;
}

.leaderboard-card:nth-child(1) .stat i,
.leaderboard-card:nth-child(2) .stat i,
.leaderboard-card:nth-child(3) .stat i {
  color: var(--primary-dark);
}

.leaderboard-card:nth-child(1) .stat.highlight-stat,
.leaderboard-card:nth-child(2) .stat.highlight-stat,
.leaderboard-card:nth-child(3) .stat.highlight-stat {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.leaderboard-card:nth-child(1) .stat.highlight-stat {
  background: rgba(255, 160, 0, 0.9);
  color: white;
  border-color: #FFA000;
  font-weight: 700;
}

.leaderboard-card:nth-child(2) .stat.highlight-stat {
  background: rgba(97, 97, 97, 0.9);
  color: white;
  border-color: #616161;
}

.leaderboard-card:nth-child(3) .stat.highlight-stat {
  background: rgba(139, 69, 19, 0.9);
  color: white;
  border-color: #8B4513;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.empty-state p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Loading state */
.loading-leaderboard {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--gray-600);
}

.loading-spinner {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: spin 1s linear infinite;
}

.loading-spinner i {
  color: var(--primary);
}

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

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

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

.leaderboard-card {
  animation: slideIn 0.5s ease-out;
  animation-fill-mode: both;
}

.leaderboard-card:nth-child(1) {
  animation-delay: 0.1s;
}

.leaderboard-card:nth-child(2) {
  animation-delay: 0.2s;
}

.leaderboard-card:nth-child(3) {
  animation-delay: 0.3s;
}

.leaderboard-card:nth-child(n+4) {
  animation-delay: calc(0.1s * var(--index, 4));
}

/* Responsive design */
@media (max-width: 1024px) {
  .leaderboards-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .leaderboard-section {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .leaderboard-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .rank-section {
    min-width: auto;
    width: 100%;
    padding: 1rem;
  }
  
  .stats {
    justify-content: center;
    gap: 0.5rem;
    flex-direction: column;
    width: 100%;
  }
  
  .stat {
    width: 100%;
    justify-content: center;
  }
  
  .leaderboard-title {
    font-size: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .leaderboards-wrapper {
    padding: 1rem;
  }
  
  .leaderboard-section {
    padding: 1.5rem;
  }
  
  .username {
    font-size: 1.25rem;
  }
  
  .rank-number {
    font-size: 2rem;
  }
}

/* ===== USER FEEDBACK & ERROR MESSAGES ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
}

.toast {
  background: white;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-left-color: var(--success);
  color: var(--success-dark);
  background: var(--success-light);
}

.toast.error {
  border-left-color: var(--error);
  color: var(--error-dark);
  background: var(--error-light);
}

.toast.info {
  border-left-color: var(--info);
  color: var(--info-dark);
  background: var(--info-light);
}

.toast.warning {
  border-left-color: var(--warning);
  color: var(--warning-dark);
  background: var(--warning-light);
}

.toast-icon {
  font-size: 1.25rem;
}

.toast-message {
  flex: 1;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.toast-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

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

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

.toast.hiding {
  animation: slideOut 0.3s ease forwards;
}

.team-display {
  background: var(--primary-light);
  color: var(--primary);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 2px solid var(--primary);
  margin-bottom: 1rem;
}

.user-display {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  margin-bottom: 1rem;
}

.user-display strong {
  color: var(--primary);
  font-weight: 600;
}

/* Responsive navigation */
@media (max-width: 1200px) {
  .navbar .container {
    max-width: 100%;
    padding: 0 1rem;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 0.25rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 0 0.75rem;
  }
  
  .nav-links {
    gap: 0.25rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link i {
    font-size: 1.2rem;
  }
  
  .user-section {
    gap: 1rem;
  }
  
  .welcome-container {
    padding: 0.4rem 0.75rem;
  }
  
  .welcome-text {
    font-size: 0.8rem;
  }
  
  .username-display {
    font-size: 0.85rem;
  }
  
  .logout-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ===== SETTINGS PAGE STYLES ===== */

/* Settings Container */
.settings-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Content Sections */
.content-section {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.content-section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.content-section.editing {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.1);
}

/* Section Headers for Settings */
.content-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.content-section .section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.content-section .section-header h2 i {
  color: var(--primary);
  font-size: 1.3rem;
}

.section-description {
  color: var(--gray-600);
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 400;
}

/* Action Buttons Grid */
.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-button:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(15, 139, 141, 0.15);
  color: var(--primary);
}

.action-button:active {
  transform: translateY(-1px);
}

.action-button i {
  font-size: 1.5rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.75rem;
  border-radius: 10px;
  min-width: 3rem;
  text-align: center;
  transition: all 0.3s ease;
}

.action-button:hover i {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.action-button span {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.action-button strong {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.action-button small {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 400;
}

/* Danger and Warning Buttons */
.action-button.danger {
  border-color: var(--error-light);
  background: var(--error-light);
}

.action-button.danger:hover {
  border-color: var(--error);
  background: var(--white);
  color: var(--error);
}

.action-button.danger i {
  color: var(--error);
  background: var(--error-light);
}

.action-button.danger:hover i {
  background: var(--error);
  color: var(--white);
}

.action-button.warning {
  border-color: var(--warning-light);
  background: var(--warning-light);
}

.action-button.warning:hover {
  border-color: var(--warning);
  background: var(--white);
  color: var(--warning);
}

.action-button.warning i {
  color: var(--warning);
  background: var(--warning-light);
}

.action-button.warning:hover i {
  background: var(--warning);
  color: var(--white);
}

/* Section Content */
.section-content {
  margin-top: 1rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.1);
}

.form-control:disabled {
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: not-allowed;
}

/* Edit Button */
.edit-button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 139, 141, 0.3);
}

.edit-button i {
  font-size: 0.9rem;
}

/* Preference Items */
.preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.preference-item:last-child {
  border-bottom: none;
}

.preference-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
}

.preference-header i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--gray-300);
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="checkbox"]:checked + .toggle-switch {
  background: var(--primary);
}

input[type="checkbox"]:checked + .toggle-switch::before {
  transform: translateX(24px);
}

#notification-label {
  font-weight: 500;
  color: var(--gray-600);
  min-width: 2rem;
  text-align: center;
}

/* Number Inputs */
.number-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.number-input input {
  width: 80px;
  padding: 0.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: all 0.3s ease;
}

.number-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.1);
}

.number-input .form-text {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
  text-align: center;
  display: block;
  width: 100%;
}

/* Danger Buttons Section */
.danger-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Form Links */
.form-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.form-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Current Email Display */
.current-email-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  color: var(--gray-700);
  font-weight: 500;
}

.current-email-display i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Form Text */
.form-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  font-style: italic;
}

/* User Card */
.user-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 15px;
  color: var(--gray-700);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.user-card i {
  font-size: 2.5rem;
  color: var(--primary);
}

.user-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-800);
}

.user-details p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
}

/* Form Container */
.form-container {
  margin-top: 1rem;
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.team-form {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.form-actions .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.form-actions .btn-primary {
  background: var(--primary);
  color: var(--white);
}

.form-actions .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 139, 141, 0.3);
}

.form-actions .btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.form-actions .btn-secondary:hover {
  background: var(--gray-300);
  transform: translateY(-1px);
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
  .settings-container {
    padding: 1rem 0.5rem;
  }
  
  .content-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .action-button {
    padding: 1.25rem;
  }
  
  .action-button span {
    flex: 1;
  }
  
  .preference-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .toggle-container {
    align-self: flex-end;
  }
  
  .content-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .edit-button {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 1rem;
  }
  
  .action-button {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .action-button i {
    margin-bottom: 0.5rem;
  }
}

/* Inline Editing Styles */
.entry-row.editing {
  background-color: var(--primary-light);
  border: 2px solid var(--primary);
}

.entry-row.editing td {
  padding: 12px 15px;
  vertical-align: middle;
}

.entry-row.editing .date-content,
.entry-row.editing .team-content,
.entry-row.editing .distance-content,
.entry-row.editing .minutes-content,
.entry-row.editing .steps-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.entry-row.editing .date-content {
  gap: 4px;
}

.entry-row.editing .team-content {
  gap: 2px;
}

.editing-indicator {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.75rem;
  margin-top: 4px;
  text-align: center;
  line-height: 1;
}

.edit-input {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  background-color: white;
  margin: 0 4px;
  vertical-align: middle;
  display: inline-block;
}

.edit-input:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 2px rgba(15, 139, 141, 0.2);
}

.edit-input.distance-input {
  width: 70px;
}

.edit-input.minutes-input {
  width: 70px;
}

.edit-input.steps-input {
  width: 90px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}

.input-group span {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
  white-space: nowrap;
}

.action-buttons.editing {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.save-btn {
  background-color: var(--success);
  color: white;
  border: none;
}

.save-btn:hover {
  background-color: var(--success-dark);
}

.save-btn:disabled {
  background-color: var(--gray-400);
  cursor: not-allowed;
}

.cancel-btn {
  background-color: var(--gray-500);
  color: white;
  border: none;
}

.cancel-btn:hover {
  background-color: var(--gray-600);
}

/* Responsive editing styles */
@media (max-width: 768px) {
  .edit-input {
    width: 60px;
    font-size: 0.8rem;
  }
  
  .edit-input.distance-input,
  .edit-input.minutes-input {
    width: 50px;
  }
  
  .edit-input.steps-input {
    width: 70px;
  }
}
