/* Custom Calendar Styles */

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.calendar-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  flex: 1;
  text-align: center;
}

.calendar-btn {
  background-color: #ef8a2c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.calendar-btn:hover {
  background-color: #d97318;
}

/* Month View */
.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 10px;
  background-color: #e9ecef;
}

.calendar-day-name {
  background-color: #f8f9fa;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  color: #495057;
  font-size: 0.9rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #e9ecef;
}

.calendar-cell {
  background-color: white;
  min-height: 100px;
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.calendar-cell.empty {
  background-color: #f8f9fa;
}

.calendar-day-num {
  font-weight: bold;
  font-size: 1rem;
  color: #333;
  margin-bottom: 4px;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-event {
  background-color: #ef8a2c;
  color: white;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s;
}

.calendar-event:hover {
  background-color: #d97318;
}

/* List View */
.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-list-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  background-color: #f8f9fa;
  border-left: 4px solid #ef8a2c;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.calendar-list-item:hover {
  background-color: #e9ecef;
}

.list-item-date {
  font-weight: bold;
  color: #ef8a2c;
  min-width: 80px;
  text-align: center;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.list-item-time {
  font-size: 0.9rem;
  color: #666;
}

.no-events {
  padding: 20px;
  text-align: center;
  color: #999;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .calendar-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .calendar-header h3 {
    width: 100%;
    order: 2;
  }

  .calendar-btn {
    flex: 1;
    min-width: 100px;
  }

  .calendar-cell {
    min-height: 80px;
    padding: 6px;
  }

  .calendar-event {
    font-size: 0.7rem;
  }

  .calendar-day-num {
    font-size: 0.9rem;
  }

  .list-item-date {
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .calendar-cell {
    min-height: 60px;
  }

  .calendar-day-num {
    font-size: 0.8rem;
  }

  .calendar-event {
    font-size: 0.65rem;
    padding: 2px 4px;
  }
}

.calendar-header.dark-mode {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #181B1F;
  border-radius: 8px;
}

.calendar-header.dark-mode h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
  flex: 1;
  text-align: center;
}

.calendar-days-header.dark-mode {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 10px;
  background-color: #1F2328;
}

.calendar-day-name.dark-mode {
  background-color: #181B1F;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  color: #e8e9eb;
  font-size: 0.9rem;
}

.calendar-grid.dark-mode {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #181B1F;
}

.calendar-cell.dark-mode {
  background-color: #14161a;
  min-height: 100px;
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.calendar-cell.empty.dark-mode {
  background-color: #181B1F;
}

.calendar-day-num.dark-mode {
  font-weight: bold;
  font-size: 1rem;
  color: #e8e9eb;
  margin-bottom: 4px;
}

.calendar-list-item.dark-mode {
  display: flex;
  gap: 16px;
  padding: 12px;
  background-color: #181B1F;
  border-left: 4px solid #ef8a2c;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.calendar-list-item.dark-mode:hover {
  background-color: #1F2328;
}

.list-item-title.dark-mode {
  font-weight: bold;
  color: #e8e9eb;
  margin-bottom: 4px;
}

.list-item-time.dark-mode {
  font-size: 0.9rem;
  color: #e8e9eb;
}

.no-events.dark-mode {
  padding: 20px;
  text-align: center;
  color: #282828;
  font-style: italic;
}