/* shadcn/ui Design System Variables */
:root {
  /* Light mode colors */
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 75%;
  --input: 240 5.9% 95%;
  --ring: 240 10% 3.9%;
  --chart-1: 12 76% 61%;
  --chart-2: 173 58% 39%;
  --chart-3: 197 37% 24%;
  --chart-4: 43 74% 66%;
  --chart-5: 27 87% 67%;
  --chart-6: 260 84% 67%;
  --chart-7: 142 76% 46%;
  --chart-8: 346 82% 62%;
  --chart-9: 216 87% 55%;
  --chart-10: 72 65% 59%;
  --chart-11: 289 58% 58%;
  --chart-12: 35 78% 45%;
  --radius: 0.5rem;
}

.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;
  --chart-1: 220 70% 50%;
  --chart-2: 160 60% 45%;
  --chart-3: 30 80% 55%;
  --chart-4: 280 65% 60%;
  --chart-5: 340 75% 55%;
  --chart-6: 260 75% 65%;
  --chart-7: 142 70% 50%;
  --chart-8: 346 80% 65%;
  --chart-9: 216 80% 60%;
  --chart-10: 72 70% 55%;
  --chart-11: 289 65% 65%;
  --chart-12: 35 75% 50%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  min-height: 100vh;
  font-feature-settings:
    "rlig" 1,
    "calt" 1;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-btn {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  padding: 0.375rem 0.75rem;
  border-radius: calc(var(--radius));
  cursor: pointer;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.login-btn:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.refresh-btn {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  padding: 0.375rem 0.75rem;
  border-radius: calc(var(--radius));
  cursor: pointer;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.refresh-btn:hover:not(:disabled) {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

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

.refresh-btn.loading .refresh-icon {
  animation: spin 1s linear infinite;
}

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

.refresh-message {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius));
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
  pointer-events: none;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.refresh-message.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.refresh-message.success {
  background: hsl(142 76% 36%);
  color: white;
  border: 1px solid hsl(142 76% 30%);
}

.refresh-message.error {
  background: hsl(0 84% 60%);
  color: white;
  border: 1px solid hsl(0 84% 54%);
}

.refresh-message.warning {
  background: hsl(45 93% 47%);
  color: white;
  border: 1px solid hsl(45 93% 41%);
}

.theme-toggle {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  padding: 0.375rem;
  border-radius: calc(var(--radius));
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
  height: 2rem;
  width: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.theme-toggle:hover {
  background: hsl(var(--accent));
}

/* Screen 1: Hero + Quick Solution */
.hero-screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* Calendar Background Animation */
.calendar-animation-container {
  position: absolute;
  top: 65%;
  left: -10%;
  right: -10%;
  height: 400px;
  transform: translateY(-50%) rotate(-1.5deg);
  overflow: hidden;
  opacity: 0.6;
  backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: -1;
}

.calendar-animation-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    hsl(var(--background) / 0.3) 0%,
    transparent 50%,
    hsl(var(--background) / 0.4) 100%
  );
  z-index: 1;
}

.animated-calendar {
  display: flex;
  animation: calendarScroll 60s linear infinite;
  will-change: transform;
}

.calendar-instance {
  flex-shrink: 0;
  width: 140vw;
  padding: 0 2rem;
  background: linear-gradient(
    135deg,
    hsl(var(--card) / 0.4) 0%,
    hsl(var(--card) / 0.6) 50%,
    hsl(var(--card) / 0.4) 100%
  );
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.2);
  margin-right: 2rem;
  backdrop-filter: blur(1px);
  box-shadow: 0 4px 16px hsl(var(--primary) / 0.1);
}

.calendar-instance .calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  padding: 1rem 0 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.2);
}

.calendar-instance .day-header {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground) / 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-instance .calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  min-height: 350px;
}

.calendar-instance .day-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calendar-instance .time-slot {
  background: hsl(var(--card) / 0.6);
  border: 1px solid hsl(var(--border) / 0.2);
  border-radius: calc(var(--radius));
  padding: 0.6rem;
  backdrop-filter: blur(1px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 65px;
  box-shadow: 0 2px 8px hsl(var(--primary) / 0.05);
}

.calendar-instance .time-slot:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.15);
  border-color: hsl(var(--primary) / 0.3);
}

.calendar-instance .film-poster {
  width: 40px;
  height: 60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  background-color: hsl(var(--muted));
}

.calendar-instance .film-info {
  flex: 1;
  min-width: 0;
}

.calendar-instance .film-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.9);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calendar-instance .film-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary) / 0.8);
  margin-bottom: 0.125rem;
}

.calendar-instance .film-cinema {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground) / 0.7);
  font-weight: 500;
}

@keyframes calendarScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-146vw);
  }
}

/* Performance and Accessibility Optimizations */
@media (prefers-reduced-motion: reduce) {
  .animated-calendar {
    animation-duration: 120s; /* Slower animation for those who prefer reduced motion */
  }
  
  .calendar-instance .time-slot {
    transition: none;
  }
  
  .calendar-instance .time-slot:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .calendar-animation-container:hover .animated-calendar {
    animation-play-state: paused; /* Pause on hover for better UX */
  }
}

/* Responsive Design for Animated Calendar */
@media (max-width: 968px) {
  .calendar-animation-container {
    height: 320px;
    opacity: 0.5;
    top: 70%;
  }
  
  .calendar-instance {
    width: 160vw;
    padding: 0 1.5rem;
  }
  
  .calendar-instance .calendar-header {
    gap: 0.75rem;
  }
  
  .calendar-instance .calendar-body {
    gap: 0.75rem;
    min-height: 280px;
  }
  
  .calendar-instance .time-slot {
    min-height: 70px;
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .calendar-instance .film-poster {
    width: 35px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .calendar-animation-container {
    height: 280px;
    opacity: 0.4;
    top: 75%;
    transform: translateY(-50%) rotate(-1deg) scale(0.85);
  }
  
  .calendar-instance {
    width: 180vw;
    padding: 0 1rem;
  }
  
  .calendar-instance .calendar-header {
    gap: 0.5rem;
    padding: 0.75rem 0 0.375rem 0;
  }
  
  .calendar-instance .day-header {
    font-size: 0.75rem;
  }
  
  .calendar-instance .calendar-body {
    gap: 0.5rem;
    padding: 0.75rem 0;
    min-height: 240px;
  }
  
  .calendar-instance .day-column {
    gap: 0.5rem;
  }
  
  .calendar-instance .time-slot {
    min-height: 60px;
    padding: 0.375rem;
    gap: 0.375rem;
  }
  
  .calendar-instance .film-poster {
    width: 28px;
    height: 42px;
  }
  
  .calendar-instance .film-title {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
  }
  
  .calendar-instance .film-time {
    font-size: 0.6875rem;
  }
  
  .calendar-instance .film-cinema {
    font-size: 0.625rem;
  }
  
  @keyframes calendarScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-186vw);
    }
  }
}

@media (max-width: 480px) {
  .calendar-animation-container {
    height: 220px;
    opacity: 0.3;
    top: 80%;
    transform: translateY(-50%) rotate(-0.5deg) scale(0.7);
    backdrop-filter: blur(1px);
  }
  
  .calendar-instance {
    width: 200vw;
    padding: 0 0.75rem;
  }
  
  .calendar-instance .calendar-header {
    gap: 0.25rem;
  }
  
  .calendar-instance .day-header {
    font-size: 0.6875rem;
  }
  
  .calendar-instance .calendar-body {
    gap: 0.25rem;
    min-height: 200px;
  }
  
  .calendar-instance .day-column {
    gap: 0.375rem;
  }
  
  .calendar-instance .time-slot {
    min-height: 50px;
    padding: 0.25rem;
    gap: 0.25rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .calendar-instance .film-poster {
    width: 24px;
    height: 36px;
  }
  
  .calendar-instance .film-title {
    font-size: 0.625rem;
    line-height: 1.1;
  }
  
  .calendar-instance .film-time {
    font-size: 0.625rem;
  }
  
  .calendar-instance .film-cinema {
    display: none;
  }
  
  @keyframes calendarScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-206vw);
    }
  }
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: radial-gradient(ellipse at center, hsl(var(--background) / 0.1) 0%, transparent 70%);
  backdrop-filter: blur(0.5px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  border: 1px solid hsl(var(--primary) / 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.highlight {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--chart-1)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--chart-1)));
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px hsl(var(--primary) / 0.3);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsl(var(--primary) / 0.4);
}

/* Quick Solution */
.quick-solution {
  background: hsl(var(--muted) / 0.3);
  padding: 2rem 1rem;
}

.solution-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.problem-highlight {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.problem-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    hsl(var(--chart-1)),
    hsl(var(--chart-2)),
    hsl(var(--chart-3))
  );
}

.problem-visual {
  margin-bottom: 1.5rem;
}

.problem-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.problem-icon {
  font-size: 2rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.problem-icon.frustrated {
  animation-delay: 0s;
}

.problem-icon.arrow {
  animation-delay: 1s;
  color: hsl(var(--muted-foreground));
  font-size: 1.5rem;
}

.problem-icon.solution {
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.problem-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  line-height: 1.3;
}

.problem-text p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

.problem-text strong {
  color: hsl(var(--primary));
  font-weight: 600;
}

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

.solution-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: hsl(var(--card));
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
}

.step-icon {
  font-size: 2.5rem;
}

.step-text {
  font-size: 1rem;
  color: hsl(var(--foreground));
  text-align: center;
}

/* Screen 2: Registration + Mini FAQ */
.registration-screen {
  min-height: 100vh;
  padding: 4rem 2rem;
  background: hsl(var(--muted) / 0.3);
}

.registration-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}

/* Registration Form Section */
.registration-form-section {
  background: hsl(var(--card));
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.form-header p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

.registration-form.compact {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  color: #1a202c;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

/* Cities */
.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 15px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background-color: #f7fafc;
  margin-bottom: 15px;
}

.city-option {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: white;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.city-option:hover {
  background-color: #edf2f7;
  border-color: #cbd5e0;
}

.city-option.selected {
  background-color: #667eea;
  color: white;
  border-color: #667eea;
}

.city-option input[type="checkbox"] {
  margin-right: 6px;
  width: auto;
}

.selected-cities {
  margin-bottom: 1.5rem;
}

.selected-list {
  min-height: 40px;
  padding: 12px;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  background-color: #f7fafc;
}

.no-selection {
  color: #a0aec0;
  font-style: italic;
  text-align: center;
  margin: 0;
  font-size: 0.875rem;
}

.selected-city-tag {
  display: inline-block;
  background-color: #667eea;
  color: white;
  padding: 4px 10px;
  margin: 2px;
  border-radius: 16px;
  font-size: 0.875rem;
}

.selected-city-tag .remove {
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* Trust Signals */
.trust-signals {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.trust-icon {
  color: hsl(var(--chart-2));
}

/* Submit Button */
.submit-btn.compact {
  width: 100%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--chart-1)));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px hsl(var(--primary) / 0.3);
}

.submit-btn.compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsl(var(--primary) / 0.4);
}

/* Mini FAQ Section */
.mini-faq-section {
  background: hsl(var(--card));
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.mini-faq-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
  text-align: center;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 1rem;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.faq-item p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.login-section {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.login-section p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin: 0;
}

.login-section a {
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 500;
}

.login-section a:hover {
  text-decoration: underline;
}

/* Hidden Elements */
.hidden {
  display: none;
}

/* Success Message */
.success-message {
  background: white;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.success-message h2 {
  color: #38a169;
  margin-bottom: 15px;
}

.success-message a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.success-message a:hover {
  text-decoration: underline;
}

/* Registration Loading Overlay */
.registration-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: hsl(var(--background));
  z-index: 9999;
  padding: 2rem;
}

.registration-loading-overlay:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.registration-loading-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.registration-loading-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.registration-loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid hsl(var(--muted));
  border-top: 4px solid hsl(var(--primary));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.registration-loading-text {
  text-align: left;
}

.registration-loading-text h2 {
  margin: 0 0 0.5rem 0;
  color: hsl(var(--foreground));
  font-size: 1.5rem;
  font-weight: 600;
}

.registration-loading-text p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

.registration-loading-progress {
  margin-bottom: 3rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: hsl(var(--muted));
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--chart-1)));
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.progress-step.completed {
  opacity: 1;
}

.step-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(var(--muted));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.progress-step.completed .step-icon {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.progress-step span {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.progress-step.completed span {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.registration-loading-tips {
  background: hsl(var(--muted));
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.registration-loading-tips h3 {
  margin: 0 0 1rem 0;
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 600;
}

.registration-loading-tips ul {
  margin: 0;
  padding-left: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.registration-loading-tips li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.registration-loading-tips li:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
  .registration-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mini-faq-section {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 2rem 1rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .quick-solution {
    padding: 2rem 1rem;
  }

  .solution-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .registration-screen {
    padding: 2rem 1rem;
  }

  .registration-form-section {
    padding: 2rem;
  }

  .cities-grid {
    grid-template-columns: 1fr;
    max-height: 150px;
  }

  .trust-signals {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .registration-container {
    gap: 1.5rem;
  }

  .mini-faq-section {
    padding: 1.5rem;
  }

  .registration-loading-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .progress-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Optimized mobile calendar for small screens */
  .mobile-calendar {
    gap: 1rem;
  }

  .mobile-day-header {
    padding: 0.75rem 1rem;
  }

  .mobile-day-header h3 {
    font-size: 1rem;
  }

  .mobile-day-content {
    padding: 0.75rem;
  }

  .mobile-time-slot {
    padding: 1rem;
    min-height: 100px;
  }

  .mobile-film-header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .mobile-poster {
    width: 45px;
    height: 68px;
  }

  .mobile-film-title {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .mobile-time {
    font-size: 0.9rem;
  }

  .mobile-duration {
    font-size: 0.8125rem;
  }

  .mobile-cinema-name {
    font-size: 0.8125rem;
  }

  .mobile-cinema-address {
    font-size: 0.75rem;
  }

  .mobile-info-btn {
    top: 0.75rem;
    right: 0.75rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-stats .stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    margin-top: 0;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .problem-statement h3 {
    font-size: 1.25rem;
  }

  .solution-step {
    padding: 1rem;
  }

  .step-icon {
    font-size: 2rem;
  }
}

/* Dashboard Styles (restored) */
.dashboard-container {
  max-width: 95vw;
  margin: 0 auto;
  padding: 1.25rem;
  overflow-x: hidden;
}

.dashboard {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2);
  padding: 2rem;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Film Selection Dimming Logic */
.film-selection-active .sidebar-film-card:not(.selected) {
  opacity: 0.4;
  filter: grayscale(60%);
  transition: all 0.3s ease;
}

.film-selection-active .time-slot:not(.selected) {
  opacity: 0.3;
  filter: grayscale(80%);
  transition: all 0.3s ease;
}

.film-events {
  margin-top: 0;
}

/* New split layout styles */
.film-calendar-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  min-height: 500px;
  overflow: hidden;
}

.films-sidebar {
  flex-shrink: 0;
  width: 300px;
  background: hsl(var(--muted) / 0.5);
  border-radius: calc(var(--radius) * 2);
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.films-sidebar h3 {
  margin: 0 0 1.25rem 0;
  color: hsl(var(--foreground));
  font-size: 1.125rem;
  font-weight: 600;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 0.75rem;
}

/* Films list container to support ordering */
#films-list {
  display: flex;
  flex-direction: column;
}

.calendar-section {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.calendar-grid {
  background: hsl(var(--card));
  border-radius: calc(var(--radius) * 2);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  min-width: 700px;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: hsl(var(--muted));
}

.calendar-day-header {
  padding: 1rem 0.75rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  border-right: 1px solid hsl(var(--border));
}

.calendar-day-header:last-child {
  border-right: none;
}

.calendar-day-header.today {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.calendar-day-header h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 400px;
}

.calendar-day-column {
  border-right: 1px solid hsl(var(--border));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calendar-day-column:last-child {
  border-right: none;
}

/* Sidebar film cards */
.sidebar-film-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: hsl(var(--card));
  border-radius: calc(var(--radius));
  border: 1px solid hsl(var(--border));
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-film-card:hover,
.sidebar-film-card.highlighted {
  border-color: hsl(var(--ring));
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  background: hsl(var(--accent));
}

.sidebar-film-card.selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sidebar-film-card.selected .sidebar-film-info h4,
.sidebar-film-card.selected .film-stats {
  color: hsl(var(--primary-foreground));
}

.sidebar-poster {
  flex-shrink: 0;
  width: 40px;
  height: 60px;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: hsl(var(--muted));
}

.sidebar-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-film-info {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0.75rem;
}

.film-content {
  flex: 1;
  min-width: 0;
}

.sidebar-film-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.25;
}

.film-stats {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.no-films {
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-style: italic;
  padding: 2.5rem 1.25rem;
}

/* Time slots in calendar */
.time-slot {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius));
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
}

.film-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.time-slot:hover,
.time-slot.highlighted {
  border-color: hsl(var(--ring));
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  background: hsl(var(--accent));
}

.time-slot.selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  box-shadow:
    0 2px 4px -1px rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.time-info {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.time-info .time {
  font-weight: 600;
  color: hsl(var(--primary));
  font-size: 0.75rem;
}

.time-info .duration {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.location-info .cinema {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0;
}

.location-info .address {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.2;
}

.info-btn {
  position: absolute;
  top: 0.125rem;
  right: 0.125rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  padding: 0.125rem 0.25rem;
  border-radius: calc(var(--radius) - 3px);
  font-size: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.2s ease;
  line-height: 1;
}

.info-btn:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Empty day styling */
.empty-day {
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-style: italic;
  padding: 2.5rem 0.75rem;
  font-size: 0.875rem;
}

/* Color coding for films */
.sidebar-film-card[data-film-color="0"],
.time-slot[data-film-color="0"] {
  border-left: 3px solid hsl(var(--chart-1));
}

.sidebar-film-card[data-film-color="1"],
.time-slot[data-film-color="1"] {
  border-left: 3px solid hsl(var(--chart-2));
}

.sidebar-film-card[data-film-color="2"],
.time-slot[data-film-color="2"] {
  border-left: 3px solid hsl(var(--chart-3));
}

.sidebar-film-card[data-film-color="3"],
.time-slot[data-film-color="3"] {
  border-left: 3px solid hsl(var(--chart-4));
}

.sidebar-film-card[data-film-color="4"],
.time-slot[data-film-color="4"] {
  border-left: 3px solid hsl(var(--chart-5));
}

.sidebar-film-card[data-film-color="5"],
.time-slot[data-film-color="5"] {
  border-left: 3px solid hsl(var(--chart-6));
}

.sidebar-film-card[data-film-color="6"],
.time-slot[data-film-color="6"] {
  border-left: 3px solid hsl(var(--chart-7));
}

.sidebar-film-card[data-film-color="7"],
.time-slot[data-film-color="7"] {
  border-left: 3px solid hsl(var(--chart-8));
}

.sidebar-film-card[data-film-color="8"],
.time-slot[data-film-color="8"] {
  border-left: 3px solid hsl(var(--chart-9));
}

.sidebar-film-card[data-film-color="9"],
.time-slot[data-film-color="9"] {
  border-left: 3px solid hsl(var(--chart-10));
}

.sidebar-film-card[data-film-color="10"],
.time-slot[data-film-color="10"] {
  border-left: 3px solid hsl(var(--chart-11));
}

.sidebar-film-card[data-film-color="11"],
.time-slot[data-film-color="11"] {
  border-left: 3px solid hsl(var(--chart-12));
}

/* Film Hiding/Showing Functionality */
.sidebar-title {
  margin-bottom: 0.75rem;
}

.sidebar-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 0.5rem;
}

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

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  transition: color 0.15s ease-in-out;
  white-space: nowrap;
}

.text-btn:hover {
  color: hsl(var(--foreground));
}

.text-btn:active {
  transform: translateY(0.5px);
}

.hidden-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  padding: 0.125rem 0.375rem;
  border-radius: calc(var(--radius) - 2px);
  display: none;
  line-height: 1.2;
}

.hidden-count.visible {
  display: inline-block;
}

.film-hide-btn {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: hsl(var(--background) / 0.6);
  color: hsl(var(--muted-foreground) / 0.5);
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.2s ease-in-out;
  border-radius: calc(var(--radius) - 1px);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.sidebar-film-card:hover .film-hide-btn {
  opacity: 0.7;
  background: hsl(var(--background) / 0.8);
  color: hsl(var(--muted-foreground) / 0.7);
}

.film-hide-btn:hover {
  opacity: 1 !important;
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.1);
  transform: scale(1.05);
}

.film-hide-btn.hidden-state {
  opacity: 0.4;
  color: hsl(var(--muted-foreground) / 0.7);
}

.film-hide-btn.hidden-state:hover {
  opacity: 0.8 !important;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
}

.film-hide-btn:active {
  transform: scale(0.95);
}

.sidebar-film-card.hidden,
.time-slot.hidden {
  opacity: 0.4;
  filter: grayscale(80%);
  order: 999;
}

.sidebar-film-card,
.time-slot {
  transition: all 0.2s ease-out;
}

.sidebar-film-card.hiding,
.time-slot.hiding {
  opacity: 0;
  transform: translateX(-4px);
}

/* Loading States */
.loading-state {
  padding: 2rem;
  text-align: center;
}

.loading-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid hsl(var(--muted));
  border-top: 3px solid hsl(var(--primary));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  text-align: left;
}

.loading-text h2 {
  margin: 0 0 0.5rem 0;
  color: hsl(var(--foreground));
  font-size: 1.25rem;
  font-weight: 600;
}

.loading-text p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Loading Skeleton */
.loading-skeleton {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.skeleton-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-title {
  height: 1.5rem;
  background: hsl(var(--muted));
  border-radius: 0.25rem;
  animation: pulse 2s ease-in-out infinite;
}

.skeleton-controls {
  display: flex;
  gap: 0.5rem;
}

.skeleton-button {
  height: 2rem;
  width: 4rem;
  background: hsl(var(--muted));
  border-radius: 0.25rem;
  animation: pulse 2s ease-in-out infinite;
}

.skeleton-films {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-film-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
}

.skeleton-poster {
  width: 3rem;
  height: 4rem;
  background: hsl(var(--muted));
  border-radius: 0.25rem;
  animation: pulse 2s ease-in-out infinite;
}

.skeleton-film-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-film-title {
  height: 1rem;
  background: hsl(var(--muted));
  border-radius: 0.25rem;
  animation: pulse 2s ease-in-out infinite;
}

.skeleton-film-stats {
  height: 0.75rem;
  width: 60%;
  background: hsl(var(--muted));
  border-radius: 0.25rem;
  animation: pulse 2s ease-in-out infinite;
}

.skeleton-calendar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.skeleton-day-header {
  height: 2rem;
  background: hsl(var(--muted));
  border-radius: 0.25rem;
  animation: pulse 2s ease-in-out infinite;
}

.skeleton-calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.skeleton-day-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-time-slot {
  height: 3rem;
  background: hsl(var(--muted));
  border-radius: 0.25rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h2 {
  margin: 0 0 1rem 0;
  color: hsl(var(--foreground));
  font-size: 1.5rem;
  font-weight: 600;
}

.empty-state > p {
  margin: 0 0 2rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.6;
}

.empty-state-tips {
  text-align: left;
  background: hsl(var(--muted));
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.empty-state-tips h3 {
  margin: 0 0 1rem 0;
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 600;
}

.empty-state-tips ul {
  margin: 0;
  padding-left: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.empty-state-tips li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.empty-state-tips li:last-child {
  margin-bottom: 0;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.error-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-state h2 {
  margin: 0 0 1rem 0;
  color: hsl(var(--foreground));
  font-size: 1.5rem;
  font-weight: 600;
}

.error-state p {
  margin: 0 0 2rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.6;
}

.retry-btn {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.retry-btn:hover {
  background: hsl(var(--primary) / 0.9);
}

.retry-btn:active {
  transform: translateY(0.5px);
}

.logout-btn {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  padding: 0.375rem 0.75rem;
  border-radius: calc(var(--radius));
  cursor: pointer;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.logout-btn:hover {
  background: hsl(var(--accent));
  color: hsl(var(--destructive));
}

/* Login Page Styling */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted) / 0.3);
  padding: 2rem;
}

.login-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

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

.login-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.login-header .subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

.login-form {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.login-form h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
  text-align: center;
}

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

.login-form .form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.login-form .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid hsl(var(--border));
  border-radius: 8px;
  font-size: 1rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.login-form .form-group input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.login-form .form-group input::placeholder {
  color: hsl(var(--muted-foreground));
}

.login-form .form-actions {
  margin-top: 2rem;
}

.login-form .submit-btn {
  width: 100%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--chart-1)));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px hsl(var(--primary) / 0.3);
}

.login-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsl(var(--primary) / 0.4);
}

.login-form .submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.login-footer p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin: 0;
}

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

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

/* Dark mode input fixes */
.dark .form-group input,
.dark .search-input {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.dark .form-group input::placeholder,
.dark .search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.dark .form-group input:focus,
.dark .search-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

/* Dark mode city selector fixes */
.dark .cities-grid {
  background-color: hsl(var(--card));
  border-color: hsl(var(--border));
}

.dark .city-option {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.dark .city-option:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--accent));
}

.dark .selected-list {
  background-color: hsl(var(--card));
  border-color: hsl(var(--border));
}

.dark .no-selection {
  color: hsl(var(--muted-foreground));
}

/* Responsive login page */
/* Desktop only styles - hide mobile on desktop */
@media (min-width: 769px) {
  .mobile-calendar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 15px;
  }

  .dashboard {
    padding: 25px;
  }

  .login-page {
    padding: 1rem;
  }

  .login-form {
    padding: 1.5rem;
  }

  .floating-actions {
    top: 0.5rem;
    right: 0.5rem;
    gap: 0.25rem;
  }

  .login-btn {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    height: 1.75rem;
  }

  .refresh-btn {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    height: 1.75rem;
    gap: 0.125rem;
  }

  .theme-toggle {
    height: 1.75rem;
    width: 1.75rem;
    font-size: 0.75rem;
  }

  .logout-btn {
    height: 1.75rem;
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }

  .refresh-message {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  /* Dashboard responsive design */
  .film-calendar-container {
    display: block; /* Change from flex to block for mobile */
  }

  /* Hide desktop sidebar on mobile */
  .films-sidebar {
    display: none;
  }

  /* Hide desktop calendar grid on mobile */
  .calendar-section .calendar-grid {
    display: none;
  }

  /* Create mobile day-based layout */
  .calendar-section {
    width: 100%;
  }

  /* Mobile day sections */
  .mobile-calendar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-day-section {
    background: hsl(var(--card));
    border-radius: calc(var(--radius) * 2);
    border: 1px solid hsl(var(--border));
    overflow: hidden;
  }

  .mobile-day-header {
    background: hsl(var(--muted));
    padding: 1rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
  }

  .mobile-day-header.today {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
  }

  .mobile-day-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
  }

  .mobile-day-date {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.25rem;
  }

  .mobile-day-content {
    padding: 1rem;
  }

  .mobile-time-slot {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius));
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    min-height: 100px; /* Ensure good touch target size */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  .mobile-time-slot:last-child {
    margin-bottom: 0;
  }

  .mobile-time-slot:hover,
  .mobile-time-slot.highlighted,
  .mobile-time-slot:active {
    border-color: hsl(var(--ring));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: hsl(var(--accent));
    transform: translateY(-1px);
  }

  /* Better touch feedback */
  .mobile-time-slot:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .mobile-film-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .mobile-poster {
    flex-shrink: 0;
    width: 60px;
    height: 90px;
    border-radius: calc(var(--radius));
    overflow: hidden;
    background: hsl(var(--muted));
  }

  .mobile-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-film-info {
    flex: 1;
    min-width: 0;
  }

  .mobile-film-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
  }

  .mobile-time-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .mobile-time {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--primary));
  }

  .mobile-duration {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
  }

  .mobile-cinema-info {
    color: hsl(var(--muted-foreground));
  }

  .mobile-cinema-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
  }

  .mobile-cinema-address {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .mobile-empty-day {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-style: italic;
    padding: 2rem 1rem;
    font-size: 0.875rem;
  }

  /* Color coding for mobile time slots */
  .mobile-time-slot[data-film-color="0"] {
    border-left: 4px solid hsl(var(--chart-1));
  }

  .mobile-time-slot[data-film-color="1"] {
    border-left: 4px solid hsl(var(--chart-2));
  }

  .mobile-time-slot[data-film-color="2"] {
    border-left: 4px solid hsl(var(--chart-3));
  }

  .mobile-time-slot[data-film-color="3"] {
    border-left: 4px solid hsl(var(--chart-4));
  }

  .mobile-time-slot[data-film-color="4"] {
    border-left: 4px solid hsl(var(--chart-5));
  }

  .mobile-time-slot[data-film-color="5"] {
    border-left: 4px solid hsl(var(--chart-6));
  }

  .mobile-time-slot[data-film-color="6"] {
    border-left: 4px solid hsl(var(--chart-7));
  }

  .mobile-time-slot[data-film-color="7"] {
    border-left: 4px solid hsl(var(--chart-8));
  }

  .mobile-time-slot[data-film-color="8"] {
    border-left: 4px solid hsl(var(--chart-9));
  }

  .mobile-time-slot[data-film-color="9"] {
    border-left: 4px solid hsl(var(--chart-10));
  }

  .mobile-time-slot[data-film-color="10"] {
    border-left: 4px solid hsl(var(--chart-11));
  }

  .mobile-time-slot[data-film-color="11"] {
    border-left: 4px solid hsl(var(--chart-12));
  }

  /* Loading skeleton responsive */
  .loading-skeleton {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .loading-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .skeleton-calendar-header,
  .skeleton-calendar-body {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: modal-backdrop-fade-in 0.2s ease-out;
}

.modal-backdrop.hidden {
  display: none;
}

@keyframes modal-backdrop-fade-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

.modal-container {
  background: hsl(var(--card));
  border-radius: calc(var(--radius) * 2);
  border: 1px solid hsl(var(--border));
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: modal-slide-up 0.3s ease-out;
  position: relative;
}

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

.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1rem 0 1rem;
}

.modal-close {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius));
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: hsl(var(--muted-foreground));
}

.modal-close:hover {
  background: hsl(var(--destructive));
  border-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.modal-content {
  display: flex;
  gap: 2rem;
  padding: 0 2rem 2rem 2rem;
}

.modal-poster {
  flex-shrink: 0;
  width: 200px;
}

.modal-poster img {
  width: 100%;
  border-radius: calc(var(--radius));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.modal-details {
  flex: 1;
  min-width: 0;
}

.modal-details h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.modal-info-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-info-section {
  background: hsl(var(--muted) / 0.5);
  padding: 1rem;
  border-radius: calc(var(--radius));
  border: 1px solid hsl(var(--border));
}

.modal-info-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-showtime-date {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.modal-showtime-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.modal-address {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
  line-height: 1.4;
}


/* Mobile modal styles */
@media (max-width: 768px) {
  .modal-backdrop {
    padding: 1rem;
  }
  
  .modal-container {
    max-height: 95vh;
  }
  
  .modal-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .modal-poster {
    width: 150px;
    align-self: center;
  }
  
  .modal-details h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .modal-header {
    padding: 0.75rem;
  }
  
  .modal-info-section {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .modal-backdrop {
    padding: 0.5rem;
  }
  
  .modal-content {
    padding: 0 1rem 1rem 1rem;
  }
  
  .modal-poster {
    width: 120px;
  }
  
  .modal-details h2 {
    font-size: 1.25rem;
  }
  
  .modal-showtime-time {
    font-size: 1.125rem;
  }
}
