/* Enhanced Calendar Styles */

/* Calendar Container */
.calendar-container {
  padding: 0;
  width: 100%;
}

.calendar-main {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: solid 1px rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Calendar Header */
.calendar-header {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.calendar-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  border-radius: 8px;
}

.calendar-month-title {
  font-size: 1.25rem;
  font-weight: 600;
  min-width: 150px;
  text-align: center;
}

.calendar-actions {
  display: flex;
  justify-content: flex-end;
}

/* Calendar Grid */
.v-calendar {
  --calendar-line-color: rgba(255, 255, 255, 0.05);
  --calendar-day-hover: rgba(33, 150, 243, 0.1);
  --calendar-today-color: #2196f3;
  background-color: transparent !important;
}

.v-calendar-weekly__head {
  border-bottom: 1px solid var(--calendar-line-color);
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.03);
}

.v-calendar-weekly__head-weekday {
  padding: 12px 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.v-calendar-weekly__day {
  border: 1px solid var(--calendar-line-color);
  transition: background-color 0.2s ease;
  min-height: 120px;
  background-color: rgba(30, 30, 30, 0.8);
  position: relative;
}

.v-calendar-weekly__day:hover {
  background-color: var(--calendar-day-hover);
}

.v-calendar-weekly__day-label {
  margin: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.v-calendar-weekly__day--today .v-calendar-weekly__day-label {
  background-color: var(--calendar-today-color);
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

/* Event Chips */
.calendar-event-chip {
  margin: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  padding: 0 12px;
  height: 28px;
}

.calendar-event-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Money Amount Styles */
.thousand-flow {
  color: #ff5252;
  font-weight: bold;
  background-color: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.3);
}

.five-hundred-flow {
  color: #ba68c8;
  font-weight: bold;
  background-color: rgba(186, 104, 200, 0.15);
  border: 1px solid rgba(186, 104, 200, 0.3);
}

.have-flow {
  color: #ffa726;
  background-color: rgba(255, 167, 38, 0.15);
  border: 1px solid rgba(255, 167, 38, 0.3);
}

.have-in {
  color: #66bb6a;
  background-color: rgba(102, 187, 106, 0.15);
  border: 1px solid rgba(102, 187, 106, 0.3);
}

.no-flow,
.no-in {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add Flow Button */
.add-flow-button {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0.2;
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.v-calendar-weekly__day:hover .add-flow-button {
  opacity: 0.8;
}

.add-flow-button:hover {
  opacity: 1 !important;
  transform: scale(1.1);
}

/* Calendar Event Content */
.calendar-event {
  position: relative;
  width: 100%;
}

.calendar-event-content {
  display: flex;
  justify-content: center;
  padding: 4px 0;
  width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 960px) {
  .calendar-main {
    min-width: auto;
    width: 100%;
    border-radius: 8px;
  }

  .calendar-header {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 16px;
  }

  .calendar-summary {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .calendar-navigation {
    width: 100%;
    justify-content: center;
    padding: 8px;
  }

  .calendar-month-title {
    font-size: 1.1rem;
    min-width: 120px;
  }

  .calendar-actions {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .v-calendar-weekly__head-weekday {
    padding: 8px 0;
    font-size: 0.8rem;
  }

  .v-calendar-weekly__day {
    min-height: 100px;
  }

  .calendar-event-chip {
    font-size: 0.75rem;
    height: 24px;
    padding: 0 8px;
  }
}

/* Today Highlight */
.v-calendar-weekly__day--today {
  background-color: rgba(33, 150, 243, 0.05);
  box-shadow: inset 0 0 0 1px rgba(33, 150, 243, 0.2);
}
