:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #7dd3fc;
  --secondary: #38bdf8;
  --success: #10b981;
  --success-light: #34d399;
  --danger: #dc2626;
  --white: #ffffff;
  --light: #f8fafc;
  --alt-section: #f0f9ff;
  --text-dark: #0f172a;
  --text-gray: #64748b;
  --text-muted: #94a3b8;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --footer-bg: #0f172a;
}

[data-theme="dark"] {
  --white: #2d3748;
  --light: #1a202c;
  --alt-section: #252d3d;
  --text-dark: #f7fafc;
  --text-gray: #e2e8f0;
  --text-muted: #a0aec0;
  --card-bg: #2d3748;
  --card-border: #4a5568;
  --footer-bg: #1a202c;
}

/* Smooth Transitions & Fade In for Pages */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
}

body {
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover & Focus Effects for Buttons */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

/* Hover Effects for Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

/* Hover Effects for Nav Links */
.nav-link:hover {
  color: var(--primary);
}

.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hover Effects for Footer Links */
.footer-links a:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideIn 0.3s ease-out;
  font-family: 'Cairo', sans-serif;
}

.toast.success {
  background: #10b981;
  color: white;
}

.toast.error {
  background: #ef4444;
  color: white;
}

.toast.warning {
  background: #f59e0b;
  color: white;
}

.toast.info {
  background: #3b82f6;
  color: white;
}

.toast-icon {
  font-size: 20px;
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

.toast-close:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
  border-radius: 4px;
}

@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;
  }
}

/* Breadcrumb Navigation */
.breadcrumb {
  padding: 12px 0;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-dark);
}

/* Profile Icon in Navbar */
.profile-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#headerProfileIcon {
  font-size: 2.5rem !important; /* Make it much bigger! */
  line-height: 1;
}

/* Focus Styles for Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}
