/* Téma verze 2 - Světlý minimalistický design */

/* Vynucení světlého režimu - prevence dark mode */
html {
  color-scheme: light !important;
  background-color: #ffffff !important;
}

/* Reset a základní styly */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color-scheme: light !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937 !important;
  background-color: #ffffff !important;
}

.reservations-app {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Kontejnery */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styly - světlý design */
.header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  color: #1f2937;
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #3b82f6;
  flex-shrink: 0;
}

.header-logo svg {
  width: 2rem;
  height: 2rem;
}

.header-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

/* Navigace */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-nav-expanded {
  flex: 1;
  margin-left: 2rem;
}

.header-nav-desktop {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-mobile {
  display: none;
  position: relative;
}

.header-nav-item {
  position: relative;
}

.header-nav-link {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #64748b;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  align-items: flex-start;
  gap: 0.25rem;
}

.header-nav-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
}

.header-nav-icon {
  display: flex;
  align-items: center;
  opacity: 0.7;
  flex-shrink: 0;
}

.header-nav-link:hover {
  background: #f1f5f9;
  color: #3b82f6;
  border-color: #e2e8f0;
}

.header-nav-link.active {
  background: #eff6ff;
  color: #3b82f6;
  border-color: #bfdbfe;
}



.header-nav-sub {
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1.2;
  margin-top: 0.125rem;
}

.header-brand {
  font-size: 1.125rem;
  font-weight: 500;
  color: #64748b;
  flex-shrink: 0;
}

/* Mobile burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background 0.2s ease;
}

.burger-menu:hover {
  background: #f1f5f9;
}

.burger-line {
  width: 24px;
  height: 2px;
  background: #64748b;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  margin-top: 0.5rem;
  overflow: hidden;
  z-index: 100;
  min-width: 280px;
  width: 280px;
}

.mobile-menu-item {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-menu-link {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: #64748b;
  transition: background 0.2s ease;
  white-space: nowrap;
  gap: 0.25rem;
}

.mobile-menu-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: #1f2937;
}

.mobile-menu-icon {
  display: flex;
  align-items: center;
  opacity: 0.7;
  flex-shrink: 0;
}

.mobile-menu-link:hover {
  background: #f8fafc;
  color: #3b82f6;
}

.mobile-menu-link.active {
  background: #eff6ff;
  color: #3b82f6;
}



.mobile-menu-sub {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.3;
}

/* Hlavní obsah */
.main-content {
  padding: 2rem 0;
}

.content-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Nadpisy */
h1, h2, h3, h4, h5, h6 {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

/* Textové utility třídy */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

/* Barvy textu */
.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-900 {
  color: #111827;
}

/* Font weight */
.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Formulářové prvky */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Vynucení světlého režimu pro všechny formulářové prvky */
input,
textarea,
select {
  background-color: white !important;
  color: #1f2937 !important;
  color-scheme: light !important;
}

.form-input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  background: white !important;
  color: #1f2937 !important;
}

.form-input:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.75rem center/1.5em 1.5em !important;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  color: #1f2937 !important;
}

.form-select:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select option,
select option {
  color: #1f2937 !important;
  background: white !important;
}

.form-input::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
  color: #9ca3af !important;
}

/* Tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: #3b82f6 !important;
  color: white !important;
  border-color: #3b82f6 !important;
}

.btn-primary:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.btn-secondary {
  background: white !important;
  color: #64748b !important;
  border-color: #d1d5db !important;
}

.btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

.btn-outline {
  background: white !important;
  color: #374151 !important;
  border-color: #d1d5db !important;
}

.btn-outline:hover:not(:disabled) {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

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

/* Kalendář styly */
.calendar-container {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  background: white;
  overflow-x: auto;
}

@media (max-width: 768px) {
  .calendar-container {
    padding: 1rem;
    overflow-x: visible; /* Oprava pro mobilní zobrazení */
  }
}

/* DayPicker styly */
.rdp {
  margin: 0 auto;
  max-width: 100%; /* Zajistí, že kalendář se vejde na obrazovku */
}

/* Responzivní kalendář - dva měsíce na desktopu, jeden na mobilu */
.calendar-responsive .rdp-months {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
}

.calendar-responsive .rdp-month {
  flex: 0 0 auto;
  min-width: 0; /* Umožní kalendáři zmenšit se na mobilu */
}

/* Na mobilních zařízeních zobraz pouze jeden měsíc */
@media (max-width: 768px) {
  .calendar-responsive .rdp-months {
    flex-direction: column;
    gap: 1rem;
    width: 100%; /* Zajistí plnou šířku */
  }

  .calendar-responsive .rdp-month {
    width: 100%; /* Zajistí plnou šířku měsíce */
    display: block !important; /* Vynucení zobrazení prvního měsíce */
  }

  /* Skryj druhý měsíc pouze pokud existuje více než jeden */
  .calendar-responsive .rdp-month:nth-of-type(2) {
    display: none !important;
  }
}

.rdp-table {
  width: 100%;
  border-collapse: collapse;
}

.rdp-head_cell {
  text-align: center;
  font-weight: 500;
  color: #64748b;
  padding: 0.5rem;
  font-size: 0.875rem;
}

.rdp-cell {
  text-align: center;
  padding: 0.25rem;
}

.rdp-button {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #1f2937;
  transition: all 0.15s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rdp-button:hover {
  background-color: #f1f5f9;
  color: #1f2937;
}

.rdp-button_reset {
  border: none;
  background: none;
  cursor: pointer;
  color: #1f2937;
}

.rdp-day_selected {
  background-color: #3b82f6 !important;
  color: white !important;
}

.rdp-day_today {
  background-color: #f1f5f9;
  color: #1f2937;
  font-weight: 600;
}

.rdp-day_disabled {
  color: #9ca3af;
  opacity: 0.5;
  cursor: not-allowed;
}

.rdp-day_disabled:hover {
  background-color: transparent !important;
}

.rdp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.rdp-nav_button {
  width: 2rem;
  height: 2rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-in-out;
}

.rdp-nav_button:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.rdp-nav_button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rdp-caption {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
}

.rdp-caption_label {
  color: #1f2937;
}

/* Slot picker styly */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.slot-button {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: white;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.slot-button:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
  color: #1f2937;
}

.slot-button.selected {
  border-color: #3b82f6;
  background-color: #3b82f6;
  color: white;
}

.slot-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid #f1f5f9;
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

/* Responzivní úpravy */
@media (max-width: 768px) {
  .container,
  .container-sm {
    padding: 0 0.75rem;
  }

  .header-content {
    justify-content: space-between;
  }

  .header-nav-expanded {
    flex: none;
    margin-left: 0;
  }

  .header-nav-desktop {
    display: none;
  }

  .header-nav-mobile {
    display: block;
  }

  .burger-menu {
    display: flex;
  }

  .header-brand {
    font-size: 1rem;
  }

  .header-logo-text {
    font-size: 1.125rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
}
