:root {
  --bg: #f4f6fa;
  --card: #fff;
  --text: #222b45;
  --text-secondary: #6b7a99;
  --primary: #1976d2;
  --primary-hover: #1256a2;
  --button-bg: #1976d2;
  --button-text: #fff;
  --border: #e3e7ed;
  --danger: #e53935;
  --danger-bg: #ffcdd2;
  --success: #43a047;
  --success-bg: #b9f6ca;
  --shadow: 0 2px 12px rgba(30,40,60,0.08);
}

[data-theme="dark"] {
  --bg: #181c24;
  --card: #232a36;
  --text: #e3e7ed;
  --text-secondary: #a0aec0;
  --primary: #90caf9;
  --primary-hover: #5fa8d3;
  --button-bg: #90caf9;
  --button-text: #181c24;
  --border: #2a3442;
  --danger: #ff6b6b;
  --danger-bg: #3a2323;
  --success: #43a047;
  --success-bg: #233a23;
  --shadow: 0 2px 12px rgba(30,40,60,0.18);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.main-header {
  background: var(--card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 1.3em;
  font-weight: 600;
  letter-spacing: 1px;
}

.header-title span {
  pointer-events: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  z-index: 1;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--primary);
  margin-left: 10px;
  transition: transform 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

#retro-clock {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1em;
  background: #222b45;
  color: #90caf9;
  border-radius: 6px;
  padding: 4px 12px;
  letter-spacing: 2px;
  box-shadow: 0 2px 8px rgba(30,40,60,0.10);
  display: inline-block;
  vertical-align: middle;
}

.container {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin: 40px auto;
  max-width: 900px;
  border: 1px solid var(--border);
}

h2, h3 {
  color: var(--text);
  margin-top: 0;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 40px 0 0 0;
}

.dashboard-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 36px 18px;
  text-align: center;
  font-size: 1.2em;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  cursor: pointer;
}

.dashboard-card:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-hover);
  box-shadow: 0 4px 24px rgba(30,40,60,0.18);
}

.dashboard-card .icon {
  font-size: 2.2em;
  margin-bottom: 12px;
}

a, .button {
  color: var(--button-text);
  background: var(--button-bg);
  border: none;
  border-radius: 5px;
  padding: 10px 22px;
  text-decoration: none;
  font-weight: 500;
  margin: 4px 0;
  display: inline-block;
  transition: background 0.2s;
  font-size: 1em;
}

a:hover, .button:hover {
  background: var(--primary-hover);
  color: #fff;
}

.logout-btn {
  background: var(--danger);
  color: #fff;
}

.logout-btn:hover {
  background: #a00000;
}

form {
  margin-bottom: 32px;
}

input, select, textarea {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  margin: 8px 0 18px 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 1em;
}

label {
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 2px;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--bg);
  color: var(--text-secondary);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.edit-btn, .del-btn {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  margin-right: 4px;
}

.edit-btn {
  background: var(--primary);
  color: var(--button-text);
}

.del-btn {
  background: var(--danger);
  color: #fff;
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: var(--card);
}

.card-title {
  font-weight: bold;
  font-size: 1.1em;
}

.error {
  color: var(--danger);
  background: var(--danger-bg);
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.success {
  color: var(--success);
  background: var(--success-bg);
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.dashboard-btn {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 5px;
  padding: 10px 22px;
  text-decoration: none;
  font-weight: 500;
  margin: 4px 0;
  display: inline-block;
  transition: background 0.2s;
  font-size: 1em;
  cursor: pointer;
}

.dashboard-btn:hover {
  background: var(--primary-hover);
}

/* Dish card layout for admin menu */
.admin-dish-card {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 16px 18px;
  min-width: 0;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.admin-dish-photo {
  flex: 0 0 90px;
  margin-right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-dish-photo img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 1px 6px var(--border);
  background: var(--border);
}

.admin-dish-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.admin-dish-title {
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text);
}

.admin-dish-desc {
  font-size: 0.98em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.admin-dish-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: 18px;
}

.admin-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-content {
  background: var(--card);
  padding: 32px 24px;
  border-radius: 16px;
  max-width: 400px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
}

.admin-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.admin-form-row label {
  flex: 1 1 220px;
  min-width: 180px;
  display: block;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .admin-form-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .admin-form-row label {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .admin-dish-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 6px;
  }
  .admin-dish-photo {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .admin-dish-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    margin-top: 10px;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 12px;
  }
  .dashboard-cards {
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dashboard-card {
    font-size: 1em;
    padding: 24px 8px;
    min-height: 80px;
  }
  .main-header {
    padding: 12px 8px;
  }
}