/* Estilos para el calendario y agenda */

/* Estilos generales del calendario */
.calendar-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.calendar-header {
  background-color: #f8f9fa;
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.calendar-title {
  font-size: 1.5rem;
  margin: 0;
  color: #495057;
}

.calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-month-selector {
  font-size: 1.2rem;
  font-weight: 500;
}

.calendar-controls .btn {
  margin: 0 5px;
}

/* Tabla del calendario */
.calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.calendar-table th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 500;
  text-align: center;
  padding: 10px;
  border: 1px solid #dee2e6;
}

.calendar-table td {
  border: 1px solid #dee2e6;
  padding: 10px;
  height: 100px;
  vertical-align: top;
}

/* Celdas del calendario */
.calendar-cell {
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.calendar-day {
  font-weight: bold;
  margin-bottom: 5px;
}

.today {
  background-color: #e8f4ff;
}

.weekend {
  background-color: #f8f9fa;
}

.other-month {
  color: #adb5bd;
  background-color: #f9f9f9;
}

/* Eventos en el calendario */
.calendar-events {
  margin-top: 5px;
}

.calendar-event {
  margin-bottom: 5px;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

/* Clases para celdas con notas */
.has-note {
  position: relative;
}

.has-note::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #28a745;
}

/* Estilos para el modal de agenda */
.agenda-modal .modal-title {
  color: #495057;
  font-weight: 500;
}

.agenda-modal .modal-body {
  padding: 20px;
}

.agenda-content {
  min-height: 200px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 15px;
}

/* Estilos para el editor Summernote */
.note-editor .note-editing-area {
  min-height: 150px;
}

.note-editor .note-toolbar {
  background-color: #f8f9fa;
}

/* Botones de acción */
.agenda-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

/* Botones de visibilidad */
.toggle-visibility {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 5px;
}

.toggle-visibility:hover {
  color: #495057;
}

.visible {
  color: #28a745;
}

.not-visible {
  color: #dc3545;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
  .calendar-table td {
    height: 60px;
    padding: 5px;
  }
  
  .calendar-event {
    font-size: 0.7rem;
  }
  
  .calendar-title {
    font-size: 1.2rem;
  }
  
  .calendar-month-selector {
    font-size: 1rem;
  }
}

/* Estilos para filtros */
.calendar-filters {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.filter-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.filter-group label {
  margin-right: 10px;
  font-weight: 500;
}

.filter-group select {
  min-width: 200px;
}

.filter-buttons {
  display: flex;
  justify-content: flex-end;
}

.filter-buttons .btn {
  margin-left: 10px;
}

/* Botón de descarga de imagen */
.download-button {
  margin-left: 10px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.download-button:hover {
  background-color: #5a6268;
}

/* Estilos para la agenda del calendario */

/* Estilos del modal */
.agenda-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.agenda-modal .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Selector de colores */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.color-option.selected {
    transform: scale(1.1);
}

.color-option input[type="radio"] {
    display: none;
}

/* Colores predefinidos */
.color-1 { background-color: #ff6b6b; }
.color-2 { background-color: #48dbfb; }
.color-3 { background-color: #1dd1a1; }
.color-4 { background-color: #feca57; }
.color-5 { background-color: #54a0ff; }
.color-6 { background-color: #5f27cd; }

/* Estilos para las celdas del calendario con notas */
.calendar-cell.has-note {
    position: relative;
}

.calendar-cell .note-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    z-index: 2;
}

.visibility-toggle-icon {
    position: absolute;
    top: 5px;
    right: 25px;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
}

.visibility-toggle-icon.visible {
    color: #28a745;
}

.visibility-toggle-icon.not-visible {
    color: #dc3545;
}

/* Estilos de color para las celdas */
.cell-color-1 { background-color: rgba(255, 107, 107, 0.2); }
.cell-color-2 { background-color: rgba(72, 219, 251, 0.2); }
.cell-color-3 { background-color: rgba(29, 209, 161, 0.2); }
.cell-color-4 { background-color: rgba(254, 202, 87, 0.2); }
.cell-color-5 { background-color: rgba(84, 160, 255, 0.2); }
.cell-color-6 { background-color: rgba(95, 39, 205, 0.2); }

/* Estilos para versión móvil */
@media (max-width: 768px) {
    .color-options {
        gap: 5px;
    }
    
    .color-option {
        width: 25px;
        height: 25px;
    }
    
    .calendar-cell .note-icon,
    .visibility-toggle-icon {
        top: 2px;
        right: 2px;
        width: 12px;
        height: 12px;
    }
    
    .visibility-toggle-icon {
        right: 16px;
        font-size: 12px;
    }
}

/* Estilos para el formulario de filtros */
.filter-form {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-form .row {
    align-items: center;
}

.filter-btn {
    height: 38px;
    margin-top: 2px;
}

/* Estilos para el selector de fechas personalizado */
.week-selector {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    background-color: #fff;
}

.week-selector input[type="date"] {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
}

.week-selector .week-arrows {
    display: flex;
    margin-left: auto;
}

.week-selector .week-arrow {
    cursor: pointer;
    padding: 0 5px;
    font-size: 18px;
    user-select: none;
    color: #6c757d;
}

.week-selector .week-arrow:hover {
    color: #007bff;
}

/* Estilos para el Select2 */
.select2-container--default .select2-selection--single {
    height: 38px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

/* Estilos para el reloj */
.real-clock {
    background-color: #343a40;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    min-width: 120px;
    text-align: center;
} 