/* ============ 日程备忘录 - 日历特有样式 ============ */

/* 日历导航 */
.calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    min-width: 120px;
    text-align: center;
}

.nav-btn {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #8b5cf6;
    color: white;
}

/* 日历网格 */
.calendar-grid {
    margin-top: 15px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.calendar-header span {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-size: 13px;
}

.calendar-day:hover:not(.empty) {
    background: #f3e8ff;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    border: 2px solid #8b5cf6;
}

.calendar-day.selected {
    background: #8b5cf6;
    color: white;
}

.calendar-day.has-schedule {
    background: #fef3c7;
}

.calendar-day.selected.has-schedule {
    background: #8b5cf6;
}

.day-number {
    font-weight: 500;
}

.schedule-dot {
    position: absolute;
    bottom: 4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.calendar-day.selected .schedule-dot {
    background: white;
    color: #8b5cf6;
}

/* 迷你日历 */
.mini-calendar {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.mini-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
}

.nav-btn-small {
    background: #e5e7eb;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-small:hover {
    background: #8b5cf6;
    color: white;
}

.mini-calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 4px;
}

.mini-header span {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
}

.mini-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.mini-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border-radius: 4px;
    color: #374151;
}

.mini-day.empty {
    color: #d1d5db;
}

.mini-day.today {
    background: #8b5cf6;
    color: white;
    font-weight: 600;
}

.mini-day.has-schedule:not(.today) {
    background: #fef3c7;
}

/* 视图切换 */
.view-toggle {
    display: flex;
    gap: 4px;
}

.toggle-btn {
    background: #f3f4f6;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    background: #e5e7eb;
}

.toggle-btn.active {
    background: #8b5cf6;
    color: white;
}

/* 日程列表 */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.schedule-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s;
}

.schedule-item:hover {
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.schedule-header h4 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.schedule-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-action:hover {
    background: #e5e7eb;
}

.schedule-info {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6b7280;
}

.schedule-note {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}


