/* agenda.css */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #181a1b;
  color: #e8eaed;
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 260px;
  background: #202124;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid #282a2d;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4em;
  font-weight: bold;
  color: #00BBF0;
}

.create-btn {
  background: #00BBF0;
  color: #202124;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.create-btn:hover {
  background: #418ADF;
}

.calendar-section {
  background: #282a2d;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

#month-picker {
  width: 100%;
  background: #181a1b;
  color: #e8eaed;
  border: none;
  margin-bottom: 8px;
  font-size: 1em;
  padding: 4px;
}

#mini-calendar {
  text-align: center;
  color: #b0b3b8;
  font-size: 0.95em;
}

#mini-calendar span {
  cursor: pointer;
}

.agenda-list h3 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  color: #00BBF0;
}

.agenda-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.agenda-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Add agenda form styling */
#add-agenda-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
#add-agenda-form input[type="text"] {
  flex: 1;
  background: #181a1b;
  color: #e8eaed;
  border: 1px solid #393b3d;
  border-radius: 6px;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#add-agenda-form input[type="text"]::placeholder {
  color: #9aa0a6;
}
#add-agenda-form input[type="text"]:focus {
  border-color: #00BBF0;
  box-shadow: 0 0 0 2px #8ab4f833;
}
#add-agenda-form button[type="submit"] {
  background: #00BBF0;
  color: #202124;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
}
#add-agenda-form button[type="submit"]:hover {
  background: #418ADF;
}
#add-agenda-form button[type="submit"]:active {
  transform: translateY(1px);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 12px 0;
  border-bottom: 1px solid #282a2d;
  margin-bottom: 8px;
}

.header button,
.header select {
  background: #282a2d;
  color: #e8eaed;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 1em;
  cursor: pointer;
}

.header button:hover {
  background: #393b3d;
}

.header #current-date {
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 12px;
}

.agenda-board {
  flex: 1;
  background: #202124;
  border-radius: 8px;
  margin: 16px 0;
  padding: 16px;
  min-height: 350px;
  box-shadow: 0 2px 8px #0002;
  overflow-y: auto;
}

.event-block {
  --accent: #00BBF0; /* overridable per event */
  background: linear-gradient(180deg, #181a1b, #181a1b);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.event-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 191, 255, 0.15);
}
.event-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0; /* enables ellipsis */
}
.time-chip {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, #000);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: .2px;
}
.event-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.event-title {
  font-weight: 700;
  color: #e8eaed;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  background: #303236;
  color: #b7bcc1;
  border: 1px solid #3a3d41;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .78rem;
}
.event-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  background: #2b2d30;
  color: #dfe3e7;
  border: 1px solid #3a3d41;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: .9rem;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.icon-btn:hover { background: #34373b; border-color: #4a4e53; }
.icon-btn:active { transform: translateY(1px); }
.icon-btn.delete-btn { color: #ffb4ac; border-color: #5a2e2c; background: #2a1f1f; }
.icon-btn.delete-btn:hover { background: #3a2626; border-color: #7a3a36; }

#event-form {
  display: grid;
  grid-template-columns: 1fr repeat(2, 120px) auto;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

#event-form input,
#event-form button {
  padding: 8px;
  border-radius: 4px;
  border: none;
  font-size: 1em;
}

#event-form input[type="date"],
#event-form input[type="time"],
#event-form input[type="text"] {
  background: #282a2d;
  color: #e8eaed;
  border: 1px solid #393b3d;
}

#event-start,
#event-end {
  min-width: 110px;
}

#event-form button {
  background: #00BBF0;
  color: #202124;
  font-weight: bold;
  cursor: pointer;
}

#event-form button:hover {
  background: #418ADF;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loaderLogo {
  width: 200px;
  height: 200px;
  animation: zoomPop 1.5s ease-in-out;
}

@keyframes zoomPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}