﻿
.days-loading {
    padding-left: 10px;
    padding-top: 25px;
}

.schedule-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.schedule-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #337ab7;
}

    .schedule-header h1 {
        color: #337ab7;
        font-weight: 600;
        margin-bottom: 10px;
    }

.schedule-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.schedule-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #337ab7;
    border-color: #286090;
}

    .btn-primary:hover {
        background-color: #286090;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}



.color-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.color-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.type-class1 {
    background-color: #e8f4fd;
    border-left: 4px solid #337ab7;
}

.type-class2 {
    background-color: #fef3c7;
    border-left: 4px solid #ffc107;
}

.type-class3 {
    background-color: #def7ec;
    border-left: 4px solid #28a745;
}

.type-class4 {
    background-color: #fce8e6;
    border-left: 4px solid #dc3545;
}



.class1 {
    background-color: #337ab7;
}

.class2 {
    background-color: #ffc107;
}

.class3 {
    background-color: #28a745;
}

.class4 {
    background-color: #dc3545;
}


.calendar-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-header {
    background-color: #3498db;
    text-align: center;
}

.calendar-title {
    font-size: 24px;
    margin: 0;
    font-weight: 300;
}

.calendar-navigation {
    margin-top: 15px;
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

    .nav-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

.weekdays {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e1e4e8;
}

.weekday {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: #7f8c8d;
    text-transform: uppercase;
    font-size: 14px;
}

.days {
    display: flex;
    flex-wrap: wrap;
}

.day {
    flex: 1 0 14.28%; /* 7天，所以100%/7 */
    min-height: 100px;
    border-bottom: 1px solid #e1e4e8;
    border-right: 1px solid #e1e4e8;
    padding: 10px;
    position: relative;
    transition: background-color 0.2s ease;
}

    .day:nth-child(7n) {
        border-right: none;
    }

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

    .day.today {
        background-color: #ebf5fb;
        border: 2px solid #3498db;
    }

    .day:hover {
        background-color: #f1f8e9;
    }

.day-number {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

.day.today .day-number {
    background-color: #3498db;
    color: white;
}

.events {
    margin-top: 5px;
}

.event {
    font-size: 12px;
    padding: 3px 5px;
    margin-bottom: 3px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

    .event.work {
        background-color: #e3f2fd;
        color: #1565c0;
    }

    .event.personal {
        background-color: #e8f5e9;
        color: #2e7d32;
    }

    .event.important {
        background-color: #ffebee;
        color: #c62828;
    }

.add-event-btn {
    margin-top: 20px;
    text-align: center;
}



/* 模态框样式增强 */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #3498db;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .day {
        min-height: 80px;
    }

    .event {
        font-size: 11px;
        padding: 2px 4px;
    }

    .calendar-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .day {
        min-height: 60px;
        padding: 5px;
    }

    .day-number {
        font-size: 14px;
        width: 24px;
        height: 24px;
        line-height: 24px;
    }

    .events {
    }
}

.daychange {
    font-size: 25px;
}
