/* MySchedule Website - Main Styles */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  font-size: 16px; /* Ensure base font size is 16px for proper Bootstrap scaling */
}

/* Navbar Styles */
.navbar-brand {
  font-size: 1.5rem;
}

.navbar-brand i {
  font-size: 1.75rem;
  vertical-align: middle;
}

/* Hero Section */
.display-1, .display-2, .display-3, .display-4 {
  font-weight: 700;
}

/* Card Hover Effect */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Button Styles */
.btn {
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.125rem;
}

/* Lazy Loading Images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src]:not([data-src]) {
  opacity: 1;
}

/* Ensure images with src (not data-src) are visible after load */
img[loading="lazy"][src]:not([data-src]) {
  opacity: 1;
}

/* Footer Styles */
footer a:hover {
  color: #fff !important;
  transition: color 0.2s ease;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .display-1 { font-size: 3rem; }
  .display-2 { font-size: 2.5rem; }
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
}

/* Loading Spinner */
.spinner-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Utility Classes */
.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

