/* Calendar Container */
.calendar-container {
    display: flex;
    height: calc(100vh - 100px);
    background-color: #20202c;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.calendar-sidebar {
    width: 300px;
    background-color: #2a2a3a;
    border-right: 1px solid #3a3a4a;
    padding: 20px;
    overflow-y: auto;
}

.add-event-btn {
    width: 100%;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6b48ff 0%, #8b5cf6 100%);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 72, 255, 0.3);
}

.add-event-btn i {
    margin-right: 8px;
}

/* Mini Calendar */
.mini-calendar {
    background-color: #2a2a3a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.mini-calendar h6 {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.mini-calendar h6 i {
    margin-right: 8px;
    color: #6b48ff;
}

/* Event Filters */
.event-filters {
    background-color: #2a2a3a;
    border-radius: 8px;
    padding: 15px;
}

.event-filters h6 {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.event-filters h6 i {
    margin-right: 8px;
    color: #6b48ff;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group .form-label {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.form-check {
    margin-bottom: 8px;
}

.form-check-input {
    background-color: #3a3a4a;
    border-color: #4a4a5a;
}

.form-check-input:checked {
    background-color: #6b48ff;
    border-color: #6b48ff;
}

.form-check-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Main Calendar Area */
.calendar-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #20202c;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #2a2a3a;
    border-bottom: 1px solid #3a3a4a;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-nav button {
    background-color: #3a3a4a;
    border: 1px solid #4a4a5a;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.calendar-nav button:hover {
    background-color: #4a4a5a;
    border-color: #5a5a6a;
}

.calendar-title {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.calendar-views {
    display: flex;
    gap: 5px;
}

.calendar-views .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Calendar Grid */
.calendar-grid {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

/* FullCalendar Customization */
.fc {
    background-color: transparent;
    color: #ffffff;
}

.fc-theme-standard td, .fc-theme-standard th {
    border-color: #3a3a4a;
}

.fc-theme-standard .fc-scrollgrid {
    border-color: #3a3a4a;
}

.fc-daygrid-day {
    background-color: #2a2a3a;
    transition: background-color 0.3s ease;
}

.fc-daygrid-day:hover {
    background-color: #3a3a4a;
}

.fc-daygrid-day.fc-day-today {
    background-color: rgba(107, 72, 255, 0.1);
}

.fc-daygrid-day-number {
    color: #e0e0e0;
    font-weight: 500;
}

.fc-col-header-cell {
    background-color: #2a2a3a;
    color: #e0e0e0;
    font-weight: 600;
    padding: 10px 0;
}

.fc-col-header-cell a {
    color: #e0e0e0;
    text-decoration: none;
}

/* Event Styling */
.fc-event {
    border-radius: 4px;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 2px 6px;
    margin: 1px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fc-event:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fc-event.client-observation {
    border-left: 3px solid #28a745;
}

.fc-event.group-supervision {
    border-left: 3px solid #ffc107;
}

/* Modal Styling */
.modal-content {
    background-color: #2a2a3a;
    border: 1px solid #3a3a4a;
    border-radius: 8px;
}

.modal-header {
    background-color: #3a3a4a;
    border-bottom: 1px solid #4a4a5a;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    color: #ffffff;
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    color: #e0e0e0;
    padding: 20px;
}

.modal-footer {
    background-color: #3a3a4a;
    border-top: 1px solid #4a4a5a;
    border-radius: 0 0 8px 8px;
    padding: 15px 20px;
}

/* Form Controls */
.form-control, .form-select {
    background-color: #3a3a4a;
    border: 1px solid #4a4a5a;
    color: #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #4a4a5a;
    border-color: #6b48ff;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(107, 72, 255, 0.25);
}

.form-control::placeholder {
    color: #a0a0a0;
}

.form-label {
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6b48ff 0%, #8b5cf6 100%);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(107, 72, 255, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-primary {
    border-color: #6b48ff;
    color: #6b48ff;
    background-color: transparent;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: #6b48ff;
    border-color: #6b48ff;
    color: #ffffff;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    background-color: transparent;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-container {
        flex-direction: column;
        height: auto;
    }
    
    .calendar-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #3a3a4a;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .calendar-nav {
        order: 2;
    }
    
    .calendar-views {
        order: 1;
    }
    
    .calendar-title {
        order: 3;
        min-width: auto;
    }
}

/* Scrollbar Styling */
.calendar-sidebar::-webkit-scrollbar {
    width: 6px;
}

.calendar-sidebar::-webkit-scrollbar-track {
    background: #2a2a3a;
}

.calendar-sidebar::-webkit-scrollbar-thumb {
    background: #4a4a5a;
    border-radius: 3px;
}

.calendar-sidebar::-webkit-scrollbar-thumb:hover {
    background: #5a5a6a;
}

/* Animation for modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Loading state */
.calendar-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #e0e0e0;
}

.calendar-loading i {
    font-size: 2rem;
    color: #6b48ff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Event tooltip styling */
.fc-event-tooltip {
    background-color: #2a2a3a;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    color: #e0e0e0;
    padding: 8px 12px;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Today indicator */
.fc-day-today {
    position: relative;
}

.fc-day-today::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 72, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    pointer-events: none;
    border-radius: 4px;
} 