    #particles-js {
      background-color: #3556a9;
      position: fixed;
      inset: 0;
      z-index: 0;
    }
    body > * {
      position: relative;
      z-index: 1;
    }
    .container { max-width: 400px; margin: 80px auto; background: #111827; padding: 24px; border-radius: 8px; }
    label { display: block; margin-bottom: 12px; }
    input { width: 100%; padding: 8px; margin-top: 4px; border-radius: 4px; border: 1px solid #1f2a38; background: #1a2332; color: #fff; }
    button { margin-top: 16px; width: 100%; padding: 10px; background: #2196f3; border: none; border-radius: 6px; color: #fff; cursor: pointer; }
    button:hover { background: #1a2332; }
    .message { margin-top: 12px; font-weight: 500; }
    a { color: #fff; text-decoration: underline; }  

.calendar-grid .cell.today {
  outline: 3px solid #e53935;   /* strong red outline */
  outline-offset: -2px;
  background: #ffebee;          /* soft red background */
  box-shadow: inset 0 0 0 2px rgba(229,57,53,0.25);
}
.symbol-banner {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 0 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.symbol-banner img {
  max-height: 120px;
  height: auto;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #ccc;
}

@media (max-width: 600px) {
  .symbol-banner {
    gap: 16px;
  }
  .symbol-banner img {
    max-height: 80px;
  }
}

/* Auth bar */
.auth-bar {
  max-width: 1200px;
  margin: 0 auto 12px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  gap: 12px;
}

.auth-bar a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #fff;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.auth-bar a:hover {
  background: #f7f7f7;
}

/* Title */
.title {
  max-width: 1200px;
  margin: 24px auto 12px;
  padding: 0 12px;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
}

/* Background particles */
#particles-js {
  background-color: #3556a9 !important;
  position: fixed;
  inset: 0;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Calendar controls */
.calendar-controls {
  max-width: 1200px;
  margin: 0 auto 8px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.calendar-controls .btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #fff;
  color: #111;
  text-decoration: none;
}

.calendar-controls .prev {
  justify-self: start;
}

.calendar-controls .next {
  justify-self: end;
}

#month-label {
  text-align: center;
  font-weight: 600;
}

/* Weekdays header */
.calendar-weekdays {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-weight: 600;
  color: #222;
}

.calendar-weekdays > div {
  padding: 6px 4px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-align: center;
  font-size: clamp(12px, 1.6vw, 14px);
}

/* Calendar grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 6px;
  max-width: 1200px;
  margin: 8px auto 24px;
  padding: 0 12px 12px;
}

.calendar-grid .cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 8px 8px; /* 👈 reserve space for date */
  min-height: 120px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  gap: 6px;
  overflow: hidden;
}


.calendar-grid .date {
  position: absolute;
  top: 6px;
  right: 8px;
  font-weight: 700;
  color: #1f2937;
  font-size: clamp(14px, 1.8vw, 16px);
  background: #ffffff;
  padding: 2px 4px;
  border-radius: 4px;
  z-index: 2;
}

.calendar-grid .event {
  margin: 2px 0;
  padding: 4px 6px;
  border-radius: 6px;
  color: #fff;
  font-size: clamp(12px, 1.6vw, 14px);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.calendar-grid .event a {
  color: #0b1220;
  background: rgba(255,255,255,0.85);
  border-radius: 4px;
  padding: 2px 6px;
  text-decoration: none;
  border: 1px solid rgba(17,17,17,0.1);
  font-size: 12px;
}

.calendar-grid .event-controls a {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  color: #0a84ff;
  text-decoration: none;
}

/* Large screens */
@media (min-width: 1400px) {
  .auth-bar,
  .title,
  .calendar-controls,
  .calendar-weekdays,
  .calendar-grid {
    max-width: 1400px;
  }

  .calendar-grid .cell {
    min-height: 140px;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(160px, 1fr));
  }
}

/* Medium screens */
@media (max-width: 1024px) {
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
  }

  .calendar-grid .cell {
    min-height: 100px;
  }
}

/* Small screens */
@media (max-width: 768px) {
  .auth-bar,
  .calendar-controls,
  .calendar-weekdays,
  .calendar-grid {
    padding: 0 8px;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(100px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    gap: 6px;
  }

  .calendar-weekdays {
    grid-template-columns: repeat(7, minmax(100px, 1fr));
    overflow-x: auto;
    gap: 6px;
  }

  .calendar-grid .cell {
    min-height: 90px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .calendar-weekdays {
    display: none;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    gap: 6px;
  }

  .calendar-grid .cell {
    min-height: 80px;
    padding: 28px 6px 6px; /* 👈 preserve date space */
  }

  .calendar-grid .date {
    font-size: 13px;
  }

  .calendar-grid .event {
    font-size: 12px;
  }
}

/* Modal stacking */
#eventModal {
  z-index: 10000;
}

/* Small screens: bigger boxes + unified scroll */
@media (max-width: 768px) {
  .calendar-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-weekdays,
  .calendar-grid {
    min-width: 900px;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 6px;
  }

  .calendar-grid .cell {
    min-height: 120px;
    padding: 28px 10px 10px;
  }
}

/* Very small screens: even larger boxes */
@media (max-width: 480px) {
  .calendar-weekdays,
  .calendar-grid {
    min-width: 980px;
    grid-template-columns: repeat(7, minmax(190px, 1fr));

@media (max-width: 480px) {
  .calendar-weekdays,
  .calendar-grid {
    min-width: 980px;
    grid-template-columns: repeat(7, minmax(190px, 1fr));
    gap: 6px;
  }

  .calendar-grid .cell {
    min-height: 140px;
    padding: 28px 12px 12px; /* reserve space for date */
  }

  .calendar-grid .date {
    font-size: 14px;
    position: absolute;
    top: 6px;
    right: 8px;
    font-weight: 700;
    color: #1f2937;
    background: #ffffff;
    padding: 2px 4px;
    border-radius: 4px;
    z-index: 2;
  }

  .calendar-grid .event {
    font-size: 13px;
  }
}
    



/* Modal stacking */
#eventModal {
  z-index: 10000;
}

#deleteModal {
  z-index: 10000;
}
