/* Nezávislé CSS pro rezervační stránky */
/* Inspirováno reservio.com designem */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

.reservations-app {
  min-height: 100vh;
}

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

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

/* Header styly */
.header {
  background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #111827 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

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

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

.header-logo svg {
  width: 40px;
  height: 40px;
  color: #f3f4f6;
}

.header-logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f3f4f6;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.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;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #f3f4f6;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  min-width: 120px;
  text-align: center;
}

.header-nav-link:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.header-nav-link.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

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

.header-brand {
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
  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: rgba(255, 255, 255, 0.1);
}

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

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

.mobile-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.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: #d1d5db;
  transition: background 0.2s ease;
  white-space: nowrap;
  gap: 0.25rem;
}

.mobile-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
}

.mobile-menu-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #f3f4f6;
}

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

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

.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 #e2e8f0;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* 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;
}

.form-input {
  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;
}

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

.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: white;
  background-image: 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");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  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;
}

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

.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

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

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

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

.btn-primary:hover:not(:disabled) {
  background-color: #2563eb !important;
}

.btn-secondary {
  background-color: #e5e7eb !important;
  color: #1f2937 !important;
  border: 1px solid #9ca3af !important;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #d1d5db !important;
  border-color: #6b7280 !important;
}

.btn-outline {
  background-color: #ffffff !important;
  color: #1f2937 !important;
  border: 1px solid #9ca3af !important;
}

.btn-outline:hover:not(:disabled) {
  background-color: #f3f4f6 !important;
  border-color: #6b7280 !important;
}

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

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

.btn-full {
  width: 100%;
}

/* Grid systém */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Responzivní design */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Utility třídy */
.text-center {
  text-align: center;
}

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

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

.mb-2 {
  margin-bottom: 0.5rem;
}

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

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

.mb-8 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

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

.mt-6 {
  margin-top: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

/* Barvy textu */
.text-gray-500 {
  color: #6b7280;
}

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

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

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

.text-red-600 {
  color: #dc2626;
}

.text-green-600 {
  color: #059669;
}

.text-blue-600 {
  color: #2563eb;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #f3f4f6;
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s ease-in-out infinite;
}

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

/* Chybové a úspěšné zprávy */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #059669;
}

.alert-info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

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

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

/* 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;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-align: center;
}

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

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

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

/* 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;
  }
  
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .slot-grid {
    grid-template-columns: 1fr;
  }
}
