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

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  background: #0f1419;
  color: #e8e8e8;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

header {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #8b7fc7 0%, #6b5fa0 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(139, 127, 199, 0.2);
}

header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.subtitle {
  color: #e8e4f0;
  font-size: 16px;
  opacity: 0.95;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

section {
  background: #1a1f2e;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2d3548;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.current-date {
  font-weight: 600;
  color: #8b7fc7;
  min-width: 140px;
  text-align: center;
}

.btn-icon {
  background: #2d3548;
  border: none;
  color: #e8e8e8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #3d4558;
  color: #8b7fc7;
}

.btn-primary {
  background: #8b7fc7;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(139, 127, 199, 0.3);
}

.btn-primary:hover {
  background: #9d8fd7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 127, 199, 0.4);
}

.btn-secondary {
  background: #2d3548;
  color: #e8e8e8;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #3d4558;
}

/* Tidsluckor */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.time-slot {
  background: #2d3548;
  border: 2px solid #2d3548;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.time-slot:hover {
  border-color: #8b7fc7;
  background: #3d4558;
}

.time-slot.available {
  border-color: #4ade80;
}

.time-slot.available:hover {
  background: rgba(74, 222, 128, 0.1);
  border-color: #4ade80;
}

.time-slot.booked {
  background: #3d2a2a;
  border-color: #5d3a3a;
  cursor: not-allowed;
  opacity: 0.6;
}

.time-slot-time {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.time-slot-status {
  font-size: 12px;
  opacity: 0.8;
}

.time-slot.available .time-slot-status {
  color: #4ade80;
}

.time-slot.booked .time-slot-status {
  color: #f87171;
}

/* Bokningskort */
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

.bookings-list::-webkit-scrollbar {
  width: 8px;
}

.bookings-list::-webkit-scrollbar-track {
  background: #0f1419;
  border-radius: 4px;
}

.bookings-list::-webkit-scrollbar-thumb {
  background: #2d3548;
  border-radius: 4px;
}

.bookings-list::-webkit-scrollbar-thumb:hover {
  background: #3d4558;
}

.booking-card {
  background: #2d3548;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #8b7fc7;
  transition: all 0.2s;
  cursor: pointer;
}

.booking-card:hover {
  background: #3d4558;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.booking-guest {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.booking-contact {
  font-size: 12px;
  color: #a0a0a0;
}

.booking-badge {
  background: #8b7fc7;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.booking-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.booking-detail {
  display: flex;
  flex-direction: column;
}

.booking-detail-label {
  font-size: 11px;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.booking-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #e8e8e8;
}

.booking-notes {
  background: #1a1f2e;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #c0c0c0;
  font-style: italic;
}

.loading {
  text-align: center;
  color: #a0a0a0;
  padding: 32px;
}

.empty-state {
  text-align: center;
  color: #a0a0a0;
  padding: 48px 24px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #1a1f2e;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #2d3548;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.btn-close {
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-close:hover {
  background: #2d3548;
  color: #e8e8e8;
}

form {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e8e8e8;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  background: #2d3548;
  border: 2px solid #2d3548;
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8b7fc7;
  background: #3d4558;
}

textarea {
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Animationer */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-card {
  animation: fadeIn 0.3s ease;
}

.time-slot {
  animation: fadeIn 0.2s ease;
}