/* Modern Anime Picker - Custom CSS */

/* CSS Variables for consistent theming */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --secondary-dark: #db2777;
  --background: #0f172a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.1);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Main Header */
.main-header {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  margin-bottom: 2rem;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-left h1 i {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Branding section */
.branding {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.made-by, .powered-by {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.branding a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.branding a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Floating Action Button */
.floating-action-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
  transition: var(--transition);
  z-index: 1000;
}

.floating-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
}

.floating-action-btn.active {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  transform: scale(1.1);
}

.saved-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--background);
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Container */
.container {
  min-height: 100vh;
}

/* Card component */
.card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Filters section */
.filters {
  margin-bottom: 3rem;
}

.filters h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filters h2 i {
  color: var(--primary);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Form controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

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

.form-control option {
  background: var(--background);
  color: var(--text-primary);
}

/* Year range slider */
.year-range-slider {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slider-container {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.year-slider {
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  pointer-events: none;
  appearance: none;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

/* Start year slider */
#start-year-slider {
  z-index: 3;
}

/* End year slider */
#end-year-slider {
  z-index: 4;
}

/* Mobile-specific slider behavior */
@media (max-width: 768px) {
  .year-slider {
    pointer-events: auto;
  }
  
  .year-slider::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
  }
  
  .year-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
  }
}

.year-slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.year-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.6);
}

.year-slider::-webkit-slider-thumb:active {
  transform: scale(1.3);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.8);
}

.year-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: var(--transition);
}

.year-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.6);
}

.year-slider::-moz-range-thumb:active {
  transform: scale(1.3);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.8);
}

.slider-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  z-index: 1;
}

.year-select-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.year-separator {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
}

.year-select-container .form-control {
  min-width: 100px;
  text-align: center;
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.btn-success:hover {
  background: #059669;
}

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

.btn-danger:hover {
  background: #dc2626;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Action buttons container */
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.actions .btn {
  flex: 1;
  min-width: 150px;
}

/* Clear button specific styling */
.actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition: var(--transition);
  flex: 0 0 auto;
  min-width: 100px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
}

/* Filter error message */
.filter-error {
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fca5a5;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
  animation: errorSlideIn 0.5s ease-out;
}

/* Filter success message */
.filter-success {
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  color: #6ee7b7;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  animation: successSlideIn 0.5s ease-out;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Results section */
.results {
  margin-bottom: 3rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.anime-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: opacity 0.3s ease;
}

.anime-image.loading {
  opacity: 0;
  background: linear-gradient(135deg, var(--surface), var(--surface-hover));
  position: relative;
}

.anime-image.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

.anime-info h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.anime-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.meta-item i {
  font-size: 1.25rem;
}

.score {
  color: #fbbf24;
}

.year {
  color: #60a5fa;
}

/* Genres */
.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.genre-tag {
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.genre-tag.small {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Description */
.description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Results actions */
.results-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.results-actions .btn {
  flex: 1;
  min-width: 150px;
}

/* No Results Section */
.no-results {
  text-align: center;
  padding: 3rem 2rem;
}

.no-results-content {
  max-width: 500px;
  margin: 0 auto;
}

.no-results-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.no-results h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.no-results p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.no-results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.no-results-actions .btn {
  min-width: 150px;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Saved Sidebar */
.saved-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: var(--background);
  border-left: 1px solid var(--border);
  z-index: 1001;
  transform: translateX(100%);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.saved-sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.sidebar-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-header h2 i {
  color: var(--primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.saved-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.saved-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.saved-image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.saved-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.saved-details {
  padding: 1.5rem;
}

.saved-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.saved-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.saved-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.saved-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.saved-actions {
  display: flex;
  gap: 0.75rem;
}

.saved-actions .btn {
  flex: 1;
}

/* Empty saved state */
.saved-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: var(--primary);
}

.saved-empty h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.saved-empty p {
  font-size: 1rem;
  opacity: 0.8;
}

/* Error message */
.error {
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
  color: #fca5a5;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
  animation: errorSlideIn 0.5s ease-out;
}

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

/* Success message */
.success {
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
  color: #6ee7b7;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
  animation: successSlideIn 0.5s ease-out;
}

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

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

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* Save button animations */
@keyframes saveSuccess {
  0% {
    transform: scale(1);
    background: var(--success);
  }
  20% {
    transform: scale(1.3);
    background: #059669;
  }
  40% {
    transform: scale(1.2);
    background: #10b981;
  }
  60% {
    transform: scale(1.25);
    background: #059669;
  }
  80% {
    transform: scale(1.1);
    background: var(--success);
  }
  100% {
    transform: scale(1);
    background: var(--success);
  }
}

@keyframes savePulse {
  0% {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  }
  25% {
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.9);
  }
  50% {
    box-shadow: 0 30px 80px rgba(16, 185, 129, 1);
  }
  75% {
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.9);
  }
  100% {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  }
}

.save-success {
  animation: saveSuccess 1.2s ease-out;
}

.save-pulse {
  animation: savePulse 1.2s ease-out;
}

/* Icon animation for save button */
@keyframes iconBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.save-icon-bounce {
  animation: iconBounce 0.6s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }
  
  .modal-content {
    max-width: 90%;
    margin: 1rem;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .anime-image {
    height: 250px;
  }
  
  .anime-image.loading::after {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }
  
  .anime-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .anime-meta {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .description {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }
  
  .genres {
    margin-bottom: 1rem;
  }
  
  .actions {
    flex-direction: column;
  }
  
  .actions .btn {
    min-width: auto;
  }
  
  .results-actions {
    flex-direction: column;
  }
  
  .results-actions .btn {
    min-width: auto;
  }
  
  .year-range {
    flex-direction: column;
  }
  

  
  .year-display {
    font-size: 1rem;
  }
  
  .year-display span {
    padding: 0.75rem 1rem;
    min-width: 70px;
  }
  
  /* Additional mobile slider improvements */
  .year-range-slider {
    gap: 1.5rem;
  }
  
  .slider-container {
    margin: 0.5rem 0;
  }
  
  /* Mobile floating action button */
  .floating-action-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  /* Mobile sidebar */
  .saved-sidebar {
    max-width: 100%;
  }
  
  .sidebar-header {
    padding: 1rem 1.5rem;
  }
  
  .sidebar-content {
    padding: 0.75rem;
  }
  
  .saved-details {
    padding: 1rem;
  }
  
  .saved-image-container {
    height: 200px;
  }
  
  .saved-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .header-left h1 {
    font-size: 1.5rem;
  }
  
  .branding {
    margin-top: 0.25rem;
  }
  
  .made-by, .powered-by {
    font-size: 0.75rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filters h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .actions {
    gap: 0.75rem;
  }
  
  .actions .btn {
    min-width: auto;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .sidebar-header h2 {
    font-size: 1.25rem;
  }
  
  .saved-title {
    font-size: 1.1rem;
  }
  

  
  .year-display {
    font-size: 0.9rem;
  }
  
  .year-display span {
    padding: 0.5rem 0.75rem;
    min-width: 60px;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

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

/* Age Notice Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-hover);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.modal-header h3 i {
  color: var(--warning);
}

.modal-body {
  padding: 1.5rem 2rem;
}

.modal-body p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.modal-footer .btn {
  min-width: 150px;
} 