:root {
  --bg: #0d1117;
  --card: #161b22;
  --card-light: #1f2937;
  --text: #f5f5f5;
  --muted: #9ca3af;
  --primary: #ff7700;
  --primary-hover: #e66b00;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 18px 45px rgba(0,0,0,0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,119,0,0.14), transparent 35%),
    linear-gradient(135deg, #0b0f14, #111827);
  color: var(--text);
}

.hidden {
  display: none !important;
}

img {
  max-width: 100%;
}

.center-screen,
.auth-wrapper {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card,
.auth-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 100%;
  scroll-margin-top: 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
}

.auth-header {
  text-align: center;
}

.auth-logo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--primary);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin: 0 auto 14px;
}

.auth-title,
.auth-card h1 {
  font-size: 28px;
  margin: 0 0 12px;
}

.auth-sub {
  font-size: 18px;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 400;
  margin: 14px 0 22px;
}

.admin-menu {
  position: relative;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 22px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-view {
  width: 100%;
}

.admin-overview-grid,
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 32px;
  color: var(--primary);
}

.stat-card span {
  color: var(--muted);
}

@media(max-width: 700px) {
  .admin-tabs,
  .admin-overview-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    flex-direction: column;
  }
}

.admin-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px;
  z-index: 100;
}

.admin-menu-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  text-align: left;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.admin-menu-item:hover {
  background: rgba(255,119,0,0.12);
  color: var(--primary);
}

@media(max-width: 600px) {
  .admin-menu-dropdown {
    position: static;
    margin-top: 8px;
    width: 100%;
  }
}

.auth-card h2 {
  font-size: 20px;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 500;
  margin: 14px 0 22px;
}

.auth-card h3 {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
  margin: 10px 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
}

.preferred-vendor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: #fff;
  font-weight: 700;
}

.preferred-vendor-row input {
  width: auto;
  height: auto;
  margin: 0;
}

.form-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 12px;
}

.vendor-card {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

.vendor-card strong {
  color: #fff;
}

.vendor-card p {
  margin: 5px 0;
}

@media(max-width: 600px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}
.auth-body {
  width: 100%;
}

.auth-footer {
  margin-top: 16px;
  text-align: center;
}

.LogoRentLogin {
  width: 75%;
  max-width: 220px;
  height: auto;
  margin: 10px 0;
}

form {
  width: 100%;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}

input,
select {
  width: 100%;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f172a;
  color: white;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,119,0,0.25);
}

input::placeholder {
  color: #6b7280;
}

/* BUTTONS */

.btn {
  min-height: 48px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0 18px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Einloggen / Speichern / Neues Event */
.btn-login,
.btn-primary,
.btn.primary {
  background: var(--primary);
  color: #111;
}

.btn-login:hover,
.btn-primary:hover,
.btn.primary:hover {
  background: var(--primary-hover);
}

/* Google Button */
.btn-google,
#google-login {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-google:hover,
#google-login:hover {
  background: #f3f4f6;
}

/* Logout */
.btn.danger {
  background: var(--danger);
  color: white;
}

.btn.danger:hover {
  background: var(--danger-hover);
}

.btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.vendor-group {
  margin-top: 16px;
}

.vendor-group h5 {
  margin: 12px 0 8px;
  color: #ffffff;
  font-size: 15px;
}

.google-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.divider {
  text-align: center;
  margin: 18px 0;
  color: var(--muted);
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: rgba(13,17,23,0.94);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header h2 {
  margin: 0;
  font-size: 20px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.card h3 {
  margin-top: 0;
  font-size: 20px;
}

.event-item {
  background: #0f172a;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.18s ease;
}

.vendor-section {
  margin-top: 18px;
}

.vendor-card {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
  text-align: left;
}

.vendor-card strong {
  color: #fff;
  font-size: 16px;
}

.vendor-card p {
  margin: 6px 0;
  color: var(--muted);
}

.vendor-card a {
  color: var(--primary);
  font-weight: 700;
}

.event-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.dashboard-layout,
.editor-layout {
  grid-template-columns: 1fr;
}

.dashboard-card {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.event-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.event-main span {
  color: var(--muted);
  font-size: 14px;
}

.event-details {
  margin-top: 12px;
  color: var(--muted);
}

.event-details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
}

.event-open-btn {
  margin-top: 12px;
  width: 100%;
}

.event-type {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.guest-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guest-note {
  margin-top: -6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

.category-planning-list {
  margin-top: 18px;
}

.category-box {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

.category-box summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  list-style: none;
  cursor: pointer;
  padding: 16px;
}

.category-content {
  padding: 0 16px 16px;
}

.category-content h4 {
  margin: 14px 0 8px;
  color: #fff;
}

.category-content p,
.category-content li {
  color: var(--muted);
  line-height: 1.5;
}

.category-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.category-fields label {
  font-size: 13px;
}

.category-fields .full {
  grid-column: 1 / -1;
}

.category-fields textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: white;
  padding: 12px;
  font-size: 15px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}

.category-box summary {
  list-style: none;
}

.category-box summary::-webkit-details-marker {
  display: none;
}

.category-box summary::before {
  content: "▸";
  color: var(--primary);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.category-box[open] summary::before {
  transform: rotate(90deg);
}

.category-summary-title {
  text-align: left;
  flex: 1;
  font-weight: 700;
}

.category-summary-budget {
  color: #ffffff;
  font-weight: 800;
  text-align: right;
  margin-left: 20px;
}

.checkbox-row input {
  width: auto;
  height: auto;
  margin: 0;
}

@media(max-width: 600px) {
  .category-box summary {
    flex-direction: column;
  }

  .category-fields {
    grid-template-columns: 1fr;
  }
}

.event-type-info {
  margin-top: -4px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,119,0,0.08);
  border-left: 4px solid var(--primary);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.budget-distribution-box {
  margin-top: 14px;
  margin-bottom: 18px;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.budget-distribution-box summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}

.budget-row {
  display: grid;
  grid-template-columns: 1.4fr 90px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.budget-row span {
  font-size: 14px;
}

.budget-row input {
  margin-bottom: 0;
  text-align: right;
}

.budget-amount {
  font-weight: 700;
  text-align: right;
}

.percent-input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.percent-input-wrapper input {
  margin-bottom: 0;
  text-align: right;
}

.percent-input-wrapper span {
  font-weight: 700;
}

@media(max-width: 600px) {
  .budget-row {
    grid-template-columns: 1fr;
  }

  .budget-amount {
    text-align: left;
  }
}

#event-guests-display {
  opacity: 0.85;
  cursor: not-allowed;
}

input[type="date"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

#logout-view h1 {
  margin-top: 0;
}

#logout-view p {
  color: var(--muted);
}


.input-group {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.input-group input {
  margin-bottom: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.budget-percent-total {
  margin-top: 12px;
  font-weight: 700;
  text-align: right;
}

.input-addon {
  height: 48px;
  min-width: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border: 1px solid var(--border);
  border-left: none;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .header {
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .center-screen,
  .auth-wrapper {
    align-items: flex-start;
    padding: 14px;
  }

  .card,
  .auth-card {
    padding: 18px;
    border-radius: 16px;
  }

  .auth-title,
  .auth-card h1 {
    font-size: 23px;
  }

@media (max-width: 600px) {

  .auth-sub {
    font-size: 16px;
  }

  .auth-card h2 {
    font-size: 17px;
    line-height: 1.4;
  }

  .auth-card h3 {
    font-size: 14px;
  }

}

  .LogoRentLogin {
    width: 80%;
    max-width: 180px;
  }

  .btn {
    width: 100%;
    font-size: 15px;
  }

  .btn-inline {
    width: 100%;
  }

  .header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .header h2 {
    font-size: 18px;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .layout {
    padding: 12px;
    gap: 14px;
  }

  input,
  select {
    height: 48px;
    font-size: 16px;
  }

  .event-item {
    padding: 13px;
  }
}