/* Theme Toggle Styles */
:root {
  --bg-light: linear-gradient(135deg, #f5f7fa, #e9edf2);
  --text-light: #333;
  --card-bg-light: rgba(255, 255, 255, 0.95);
  --input-bg-light: #fff;
  --border-light: #ddd;
  --primary-light: #004d7a;
  --primary-hover-light: #006090;
  --header-bg-light: rgba(255, 255, 255, 0.95);
  --footer-bg-light: rgba(0, 0, 0, 0.7);
  --footer-text-light: #fff;
  
  --bg-dark: linear-gradient(135deg, #1f2937, #111827);
  --text-dark: #e5e7eb;
  --card-bg-dark: rgba(31, 41, 55, 0.95);
  --input-bg-dark: #374151;
  --border-dark: #4b5563;
  --primary-dark: #3b82f6;
  --primary-hover-dark: #2563eb;
  --header-bg-dark: rgba(17, 24, 39, 0.95);
  --footer-bg-dark: rgba(0, 0, 0, 0.8);
  --footer-text-dark: #e5e7eb;
}

body {
  --bg: var(--bg-light);
  --text: var(--text-light);
  --card-bg: var(--card-bg-light);
  --input-bg: var(--input-bg-light);
  --border: var(--border-light);
  --primary: var(--primary-light);
  --primary-hover: var(--primary-hover-light);
  --header-bg: var(--header-bg-light);
  --footer-bg: var(--footer-bg-light);
  --footer-text: var(--footer-text-light);
}

body.dark-theme {
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --card-bg: var(--card-bg-dark);
  --input-bg: var(--input-bg-dark);
  --border: var(--border-dark);
  --primary: var(--primary-dark);
  --primary-hover: var(--primary-hover-dark);
  --header-bg: var(--header-bg-dark);
  --footer-bg: var(--footer-bg-dark);
  --footer-text: var(--footer-text-dark);
}

.theme-toggle {
  position: relative;
  display: inline-block;
  margin-left: 15px;
}

.theme-toggle-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.theme-toggle-button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-toggle-button:active {
  transform: scale(0.95);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.5s ease;
}

body.dark-theme .theme-toggle-button {
  color: var(--primary-dark);
  background-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .theme-toggle-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

body.dark-theme .theme-icon-light {
  display: block;
}

body.dark-theme .theme-icon-dark {
  display: none;
}

body:not(.dark-theme) .theme-icon-light {
  display: none;
}

body:not(.dark-theme) .theme-icon-dark {
  display: block;
}

/* Animation for toggle */
.theme-toggle-button:active .theme-toggle-icon {
  transform: rotate(360deg);
} 