@charset "utf-8";
/* CSS Document */

/* style.css */
body {
    background-color: #f5f5f5;
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
}

.container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.header h1 {
    color: #337ab7;
    margin-bottom: 10px;
}

.header h1 i {
    margin-right: 10px;
}

.info-bar {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #337ab7;
}

.calendar {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.calendar-header {
    background-color: #337ab7;
    color: #fff;
    padding: 12px 0;
    font-weight: bold;
}

.calendar-body {
    max-height: 600px;
    overflow-y: auto;
}

.calendar-row {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.calendar-row:hover {
    background-color: #f9f9f9;
}

.teacher-name {
    font-weight: bold;
    color: #5bc0de;
}

.teacher-name i {
    margin-right: 5px;
}

.panel {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.panel-heading i {
    margin-right: 8px;
}

.table-responsive {
    margin-bottom: 15px;
}

.btn i {
    margin-right: 5px;
}

.alert i {
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .calendar-header,
    .calendar-row {
        font-size: 12px;
    }
    
    .panel {
        margin-bottom: 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* 追加到 style.css 末尾 */

/* 打印样式 */
@media print {
    .calendar-nav,
    .legend,
    .stats-card,
    .btn,
    .header .text-muted,
    .calendar-header i {
        display: none !important;
    }
    
    .calendar-container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .calendar-cell {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .calendar-header {
        background: #f8f9fa;
        color: #333;
        padding: 10px;
    }
    
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* 动画效果 */
.calendar-cell {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-container {
    animation: fadeIn 0.5s ease-out;
}

/* 自定义滚动条增强 */
.calendar-grid {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .calendar-grid {
        overflow-x: scroll;
    }
    
    .calendar-cell {
        min-width: 80px;
    }
}

/* 节假日标记 */
.badge-holiday {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* 今日标记特效 */
.calendar-cell.today {
    position: relative;
    overflow: hidden;
}

.calendar-cell.today::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,152,0,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 15px;
    }
    
    .calendar-nav .btn {
        margin-bottom: 10px;
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .calendar-header h2 {
        font-size: 20px;
    }
    
    .weekday {
        font-size: 12px;
        padding: 8px 0;
    }
}

/* 追加打印样式 */
@media print {
    .calendar-nav,
    .legend,
    .stats-card,
    .btn,
    .header .text-muted,
    .calendar-header i {
        display: none !important;
    }
    
    .calendar-container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .week-calendar-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .week-calendar-table tr {
        page-break-inside: avoid;
    }
    
    .weekday-cell {
        background: #f0f0f0 !important;
        print-color-adjust: exact;
    }
    
    .date-item {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd;
        margin: 5px;
        padding: 5px;
    }
    
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}