:root {
  --bg: #0f1115;
  --panel: #171a21;
  --accent: #8b1e3f;
  --accent-2: #8b2e3f70;
  --text: #f3f3f3;
  --muted: #a3a7b3;
  --border: #2a2f3a;
}

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

#login-btn,#save-btn,#create-btn {
  color: #fff;
}

#login-btn,#save-btn,#create-btn:hover {
  background: linear-gradient(
    180deg,
    var(--accent-2),
    var(--accent)
  ) !important;
  color: #ddd !important;
  border: none;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(circle at top left, #1b2233, #0f1115 50%);
  color: var(--text);
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(10, 10, 12, 0.7);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
}

.logo-link {
  text-decoration: none;
  color: var(--text);
}

.title {
  font-size: 16px;
  color: var(--muted);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-control {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #10131a;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-mobile {
  display: none;
}

.admin-main {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 24px;
  display: grid;
  gap: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.panel.is-hidden {
  display: none;
}

.panel h1,
.panel h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  margin-bottom: 12px;
}

.help {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.agenda-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

input {
  background: #0f1115;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
}

.form-actions {
  display: flex;
  gap: 12px;
}

button,
.import-btn {
  background: #10131a;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

button.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #111;
  border: none;
  font-weight: 600;
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

#login-btn.primary {
  width: fit-content;
}

[data-tooltip] {
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  [data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10, 12, 18, 0.95);
    color: var(--text);
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    white-space: nowrap;
  }
}
button.ghost {
  background: transparent;
}

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

.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 1;
}

.icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-actions button {
  width: 34px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.events-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.event-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 6px;
  background: #10131a;
}

.event-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.event-main {
  font-weight: 600;
  min-width: 0;
}

.event-date-line {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.event-city-line {
  font-size: 16px;
  margin-top: 6px;
}

.event-meta {
  color: var(--muted);
  font-size: 13px;
}

.event-actions {
  display: flex;
  gap: 10px;
  align-self: start;
}

.event-actions button {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
}

button:hover,
button:focus-visible,
.header-control:hover,
.header-control:focus-visible,
.logo-link:hover,
.logo-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.8);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.modal-close {
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 50%;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 720px) {
  .admin-header {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }

  .logo {
    display: none;
  }

  .back-mobile {
    display: inline-flex;
  }

  .create-text {
    display: none;
  }

  #create-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  #create-btn .icon-plus {
    font-size: 20px;
  }

  #export-btn {
    display: none;
  }
}
