body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-bottom: 80px; /* 为底部按钮留出空间 */
}

.app-container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

.stats-bar {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

.welcome-text {
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #eee;
}

.month-title {
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 1.3rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #eee;
    margin: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.calendar-day {
    background: white;
    padding: 0.5rem;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.today {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.calendar-day.selected {
    background: #d4edda;
    border: 2px solid #28a745;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
    position: relative;
    display: inline-block;
}

/* 蓝色点标记 - 在日期数字下方 */
.day-number::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #2196f3;
    border-radius: 50%;
    display: none;
}

.calendar-day.has-class .day-number::after {
    display: block;
}

.class-indicator {
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-btn {
    margin: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 100;
}

.selected-date-container {
    margin: 1rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.selected-date-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.selected-date-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.schedule-list {
    padding: 0;
}

.schedule-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    position: relative;
}

.schedule-item:hover {
    background-color: #f8f9fa;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.schedule-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.schedule-time-range {
    font-size: 0.85rem;
    color: #888;
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.schedule-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-student {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.schedule-subject {
    font-size: 0.9rem;
    color: #666;
}

.delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #dc3545;
    background: none;
    border: 1px solid #dc3545;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: white;
}

.weekday-header {
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
    font-size: 0.8rem;
}

/* 简洁日程列表样式 - 单行显示 */
.schedule-item-simple {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-item-simple:hover {
    background-color: #f8f9fa;
}

.schedule-item-simple:last-child {
    border-bottom: none;
}

.schedule-time-simple {
    font-size: 0.9rem;
    color: #666;
    min-width: 100px;
    white-space: nowrap;
    margin-bottom: 0;
    font-weight: 500;
}

.schedule-student-simple {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

/* 调整简洁样式的删除按钮位置 */
.schedule-item-simple .delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #dc3545;
    background: none;
    border: 1px solid #dc3545;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.schedule-item-simple .delete-btn:hover {
    background-color: #dc3545;
    color: white;
}

/* 管理员徽章样式 */
.badge.bg-success {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* 管理员按钮样式 */
#admin-login-btn, #admin-logout-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.5);
}

#admin-login-btn:hover, #admin-logout-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 登录错误提示 */
.alert-danger {
    margin-top: 0.5rem;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* 模态框样式优化 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .calendar-day {
        min-height: 50px;
        padding: 0.25rem;
        font-size: 0.8rem;
    }

    .day-number {
        font-size: 0.9rem;
    }

    .app-title {
        font-size: 1.7rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: 0.25rem;
    }

    .schedule-item {
        padding: 0.75rem;
    }

    .selected-date-container {
        margin: 0.5rem;
    }

    .schedule-header, .schedule-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .schedule-time-range {
        align-self: flex-end;
    }
}

/* 滚动条样式 */
.schedule-list::-webkit-scrollbar {
    width: 6px;
}

.schedule-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.schedule-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.schedule-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 表单样式优化 */
.form-control:focus, .form-select:focus {
    border-color: #74b9ff;
    box-shadow: 0 0 0 0.2rem rgba(116, 185, 255, 0.25);
}

.btn-primary {
    background-color: #74b9ff;
    border-color: #74b9ff;
}

.btn-primary:hover {
    background-color: #5aa7ff;
    border-color: #5aa7ff;
}

.btn-outline-primary {
    color: #74b9ff;
    border-color: #74b9ff;
}

.btn-outline-primary:hover {
    background-color: #74b9ff;
    border-color: #74b9ff;
}

/* 动画效果 */
.calendar-day, .schedule-item, .btn {
    transition: all 0.2s ease-in-out;
}

/* 加载状态 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-state p {
    margin: 0;
    font-style: italic;
}

/* 无课程状态 */
.no-classes {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-classes p {
    margin: 0;
    font-style: italic;
}

/* 成功提示样式 */
.alert-success {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 日历样式修复 */
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
}

.weekday-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 美化日历导航按钮 */
.calendar-nav .btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}
/* 统一课程时间字体 */
.schedule-time-simple {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    color: #555;
    font-weight: 400;
}