* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #1d1f21;
  color: #fff;
  padding: 25px;
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .dot {
  width: 12px;
  height: 12px;
  background: #777;
  border-radius: 50%;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8),
              -2px -2px 6px rgba(255, 255, 255, 0.05);
}

.logo h2 {
  font-size: 18px;
  font-weight: 600;
  color: #ddd;
}

.logo h2 span {
  color: #888;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.welcome {
  font-size: 13px;
  color: #aaa;
}

.welcome span {
  color: #fff;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2a2c2f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.9),
              -3px -3px 8px rgba(255,255,255,0.05);
}

.icon-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background: #232527;
  color: #aaa;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.8),
              -3px -3px 8px rgba(255,255,255,0.05);
  transition: 0.3s;
}

.icon-btn:hover {
  transform: translateY(-2px);
  color: white;
}

/* ===== MAIN LAYOUT ===== */
.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
}

/* ===== NEU CARD BASE ===== */
.neu-card {
  background: #232527;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 8px 8px 18px rgba(0,0,0,0.9),
              -5px -5px 15px rgba(255,255,255,0.04);
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Clock */
.clock-card {
  text-align: center;
  position: relative;
}

.moon-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 18px;
  opacity: 0.8;
}

.clock-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 15px;
}

.clock-card p {
  margin-top: 8px;
  font-size: 12px;
  color: #aaa;
}

/* Events + Todo */
.events-card h3,
.todo-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.small {
  font-size: 11px;
  color: #888;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: #1f2123;
  color: #ddd;
  margin-bottom: 12px;
  box-shadow: inset 3px 3px 8px rgba(0,0,0,0.8),
              inset -3px -3px 8px rgba(255,255,255,0.04);
}

.event-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #1f2123;
  margin-bottom: 10px;
  box-shadow: inset 3px 3px 8px rgba(0,0,0,0.8),
              inset -3px -3px 8px rgba(255,255,255,0.03);
  border-left: 5px solid transparent;
}

.event-item strong {
  font-size: 13px;
  color: white;
}

.event-item span {
  font-size: 11px;
  color: #888;
}

.event-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.event-actions button {
  flex: 1;
  padding: 7px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
}

.edit-btn {
  background: #4cd964;
  color: black;
}

.delete-btn {
  background: #ff3b30;
  color: white;
}

/* CATEGORY COLORS */
.event-item.work { border-left-color: #00aaff; }
.event-item.study { border-left-color: #4cd964; }
.event-item.personal { border-left-color: #af52de; }
.event-item.important { border-left-color: #ff3b30; }

.add-btn {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
  background: #232527;
  color: #aaa;
  font-size: 12px;
  box-shadow: 6px 6px 12px rgba(0,0,0,0.8),
              -4px -4px 10px rgba(255,255,255,0.04);
  transition: 0.3s;
}

.add-btn:hover {
  color: white;
  transform: translateY(-2px);
}

.export-btn {
  background: #ffcc00;
  color: black;
  font-weight: bold;
}

.event-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Todo */
.todo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #1f2123;
  margin-bottom: 10px;
  box-shadow: inset 3px 3px 8px rgba(0,0,0,0.8),
              inset -3px -3px 8px rgba(255,255,255,0.03);
}

.todo label {
  font-size: 12px;
  color: #ddd;
}

.todo input {
  accent-color: #4cd964;
}

/* ===== CALENDAR AREA ===== */
.calendar-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Calendar top controls */
.calendar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-btn {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: #232527;
  color: #aaa;
  font-size: 18px;
  box-shadow: 6px 6px 14px rgba(0,0,0,0.9),
              -4px -4px 12px rgba(255,255,255,0.04);
  transition: 0.3s;
}

.nav-btn:hover {
  transform: translateY(-2px);
  color: white;
}

.dropdown {
  flex: 1;
  height: 45px;
  background: #232527;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 6px 6px 14px rgba(0,0,0,0.9),
              -4px -4px 12px rgba(255,255,255,0.04);
}

.select-box select {
  width: 100%;
  height: 45px;
  border: none;
  outline: none;
  background: transparent;
  color: #ddd;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

.select-box select option {
  background: #232527;
  color: white;
}

/* Calendar */
.calendar {
  padding: 25px;
  border-radius: 22px;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 11px;
  color: #777;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.day {
  height: 55px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #aaa;
  background: #232527;
  box-shadow: inset 4px 4px 10px rgba(0,0,0,0.9),
              inset -3px -3px 8px rgba(255,255,255,0.04);
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.day:hover {
  transform: translateY(-2px);
  color: white;
}

.day.today {
  background: #2b2d30;
  color: white;
  font-weight: bold;
  box-shadow: 6px 6px 14px rgba(0,0,0,0.9),
              -4px -4px 12px rgba(255,255,255,0.04);
}

.day.muted {
  opacity: 0.2;
}

/* Event dot inside day */
.event-dot {
  position: absolute;
  bottom: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4cd964;
  box-shadow: 0 0 8px rgba(76, 217, 100, 0.7);
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 360px;
  background: #232527;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 10px 10px 25px rgba(0,0,0,0.9),
              -5px -5px 15px rgba(255,255,255,0.05);
  text-align: center;
}

.modal-box h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.modal-box p {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 15px;
}

.modal-box input,
.modal-box select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  outline: none;
  margin-bottom: 12px;
  background: #1f2123;
  color: #ddd;
  box-shadow: inset 3px 3px 8px rgba(0,0,0,0.8),
              inset -3px -3px 8px rgba(255,255,255,0.04);
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 6px 6px 14px rgba(0,0,0,0.9),
              -4px -4px 12px rgba(255,255,255,0.04);
  transition: 0.3s;
}

.modal-btn.cancel {
  background: #2b2d30;
  color: #aaa;
}

.modal-btn.save {
  background: #4cd964;
  color: black;
  font-weight: bold;
}

.modal-btn:hover {
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 950px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .calendar-top {
    flex-wrap: wrap;
  }

  .dropdown {
    flex: unset;
    width: 48%;
  }
}

@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  .dropdown {
    width: 100%;
  }

  .weekdays {
    font-size: 9px;
  }

  .days {
    gap: 8px;
  }

  .day {
    height: 45px;
  }
}
.event-btns {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.mini-btn {
  border: none;
  cursor: pointer;
  background: #2b2d30;
  color: #ddd;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.7),
              inset -2px -2px 6px rgba(255,255,255,0.05);
  transition: 0.2s;
}

.mini-btn:hover {
  transform: scale(1.05);
  color: white;
}
.day.selected {
  border: 2px solid #4cd964;
  color: white;
}
/* ===== REMINDER POPUP ===== */
.reminder-popup {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 280px;
  padding: 18px;
  background: #232527;
  border-radius: 18px;
  box-shadow: 10px 10px 25px rgba(0,0,0,0.9),
              -5px -5px 15px rgba(255,255,255,0.05);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 0.4s;
}

.reminder-popup.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0px);
}

.reminder-popup h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #4cd964;
}

.reminder-popup p {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 12px;
}

.reminder-popup button {
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: #4cd964;
  font-weight: bold;
  color: black;
}

/* ===== DRAG TASK STYLE ===== */
.todo {
  cursor: grab;
}

.todo.dragging {
  opacity: 0.5;
  transform: scale(0.97);
}

/* ===== EVENT SORT DISPLAY ===== */
.event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-info {
  flex: 1;
}
