* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f4f6f8;
  color: #1f2937;
}

a {
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: #111827;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px;
}

.sidebar-brand h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.sidebar-brand p {
  font-size: 14px;
  color: #9ca3af;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.nav-link {
  color: #e5e7eb;
  padding: 12px 14px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #1f2937;
}

.sidebar-footer {
  margin-top: 30px;
}

.logout-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: #dc2626;
  color: white;
  font-size: 14px;
}

.logout-btn:hover {
  background: #b91c1c;
}

.main-content {
  flex: 1;
  padding: 30px;
}

.topbar {
  margin-bottom: 24px;
}

.topbar h1 {
  font-size: 30px;
  margin-bottom: 6px;
}

.subtitle {
  color: #6b7280;
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.stat-card h3 {
  font-size: 28px;
  color: #111827;
}

.content-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.card-header p {
  color: #6b7280;
  font-size: 14px;
}

.primary-btn {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.primary-btn:hover {
  background: #1d4ed8;
}

.table-wrapper {
  overflow-x: auto;
}

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

thead {
  background: #f9fafb;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

th {
  color: #374151;
  font-weight: 600;
}

.status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.status.confirmed {
  background: #dcfce7;
  color: #166534;
}

.status.open {
  background: #fef3c7;
  color: #92400e;
}

.status.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.status.arrived {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Bestehender Login-Bereich */
.login-container {
  background: white;
  padding: 40px;
  border-radius: 10px;
  width: 350px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container h1 {
  margin-bottom: 25px;
  font-size: 24px;
  color: #333;
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
}

.input-group label {
  font-size: 14px;
  color: #555;
  display: block;
  margin-bottom: 5px;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.input-group input:focus {
  outline: none;
  border-color: #2563eb;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: white;
  font-size: 16px;
  border-radius: 5px;
}

.login-btn:hover {
  background: #1d4ed8;
}

.error-message {
  color: red;
  font-size: 13px;
  margin-top: 10px;
  display: none;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .main-content {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.form-card {
  max-width: 900px;
}

.reservation-form {
  width: 100%;
}

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

.full-width {
  grid-column: 1 / -1;
}

select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  resize: vertical;
}

select:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

.secondary-btn {
  display: inline-block;
  background: #e5e7eb;
  color: #111827;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.secondary-btn:hover {
  background: #d1d5db;
}

.success-message {
  margin-top: 18px;
  color: #166534;
  background: #dcfce7;
  padding: 12px 14px;
  border-radius: 8px;
  display: none;
  font-size: 14px;
}

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

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .secondary-btn,
  .primary-btn {
    text-align: center;
  }
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-actions input[type="date"] {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.delete-btn {
  background: #dc2626;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.delete-btn:hover {
  background: #b91c1c;
}

.empty-row {
  text-align: center;
  color: #6b7280;
}

.notes-cell {
  max-width: 220px;
  white-space: normal;
}

@media (max-width: 768px) {
  .filter-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions input,
  .filter-actions button,
  .filter-actions a {
    width: 100%;
    text-align: center;
  }
}

.status.inactive {
  background: #e5e7eb;
  color: #374151;
}

.action-btn {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: white;
}

.toggle-btn {
  background: #2563eb;
}

.toggle-btn:hover {
  background: #1d4ed8;
}