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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #222;
  line-height: 1.6;
}

.navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 0;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-link {
  text-decoration: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 22px;
  transition: background-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

main.container {
  padding: 2rem;
}

.booking-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  max-width: 600px;
  margin: 2rem auto;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ebebeb;
}

.price {
  font-size: 1.25rem;
  font-weight: 600;
}

.price span {
  font-size: 1.5rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ebebeb;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #b0b0b0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #222;
}

.input-group small {
  display: block;
  margin-top: 0.25rem;
  color: #717171;
  font-size: 0.75rem;
}

.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.guest-counter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #ebebeb;
}

.guest-row:last-child {
  border-bottom: none;
}

.guest-label {
  font-weight: 500;
}

.guest-sublabel {
  font-size: 0.875rem;
  color: #717171;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #b0b0b0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.counter-btn:hover:not(:disabled) {
  border-color: #222;
}

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

.counter-controls span {
  min-width: 30px;
  text-align: center;
  font-weight: 500;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.9;
}

.info-text {
  padding: 0.75rem;
  background: #f7f7f7;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.error-message {
  padding: 0.75rem;
  background: #fff8f6;
  border: 1px solid #f7c4bc;
  color: #c13515;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.success-message {
  padding: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
}

.tab-btn:hover {
  color: white;
}

.tab-btn.active {
  color: white;
  border-bottom-color: white;
}

.tab-content {
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.booking-item {
  padding: 1.5rem;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.booking-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.booking-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.booking-status.approved {
  background: #d1fae5;
  color: #065f46;
}

.booking-status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.booking-status.blocked {
  background: #e0e7ff;
  color: #3730a3;
}

.booking-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  font-size: 0.875rem;
}

.booking-details strong {
  color: #717171;
  font-weight: 500;
}

.booking-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-approve,
.btn-reject,
.btn-block,
.btn-unblock,
.btn-modify {
  padding: 0.5rem 1rem;
  border: 1px solid #b0b0b0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  background: white;
}

.btn-approve {
  color: #222;
}

.btn-approve:hover {
  background: #222;
  color: white;
}

.btn-reject {
  color: #c13515;
  border-color: #f7c4bc;
}

.btn-reject:hover {
  background: #c13515;
  color: white;
}

.btn-block {
  color: #3730a3;
  border-color: #c7d2fe;
}

.btn-block:hover {
  background: #3730a3;
  color: white;
}

.btn-unblock {
  color: #047857;
  border-color: #86efac;
}

.btn-unblock:hover {
  background: #047857;
  color: white;
}

.btn-modify {
  color: #0f766e;
  border-color: #99f6e4;
}

.btn-modify:hover {
  background: #0f766e;
  color: white;
}

.calendar-event {
  padding: 1rem;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-event.blocked {
  background: #fee2e2;
}

.calendar-picker {
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  background: white;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
  color: #222;
  transition: opacity 0.2s;
}

.calendar-nav-btn:hover {
  opacity: 0.7;
}

.calendar-month-year {
  font-weight: 600;
  font-size: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day-header {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #717171;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  font-size: 0.875rem;
  transition: all 0.2s;
  position: relative;
}

.calendar-day:hover:not(.disabled):not(.blocked) {
  background: #f7f7f7;
  border: 1px solid #222;
}

.calendar-day.disabled {
  color: #ddd;
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendar-day.blocked {
  color: #ddd;
  text-decoration: line-through;
  cursor: not-allowed;
  background: #f7f7f7;
}

.calendar-day.selected {
  background: #222;
  color: white;
}

.calendar-day.in-range {
  background: #f7f7f7;
  border-radius: 0;
}

.calendar-day.range-start {
  background: #222;
  color: white;
  border-radius: 50% 0 0 50%;
}

.calendar-day.range-end {
  background: #222;
  color: white;
  border-radius: 0 50% 50% 0;
}

.calendar-day.empty {
  cursor: default;
}

.input-group input[readonly] {
  cursor: pointer;
  background: white;
}

@media (max-width: 768px) {
  .date-inputs {
    grid-template-columns: 1fr;
  }
  
  .booking-details {
    grid-template-columns: 1fr;
  }
  
  main.container {
    padding: 1rem;
  }
  
  .booking-card {
    padding: 1.5rem;
  }
  
  .calendar-picker {
    padding: 1rem;
  }
}
