/* ── 홈 대시보드 위젯 ── */

/* 1. 개인 봉사 목표 위젯 */
.home-service-widget {
    margin: 12px;
    padding: 24px 20px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.home-service-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.widget-period {
    font-size: 12px;
    color: var(--text-muted);
}

.progress-container {
    margin-bottom: 12px;
}

.progress-bar-bg {
    height: 12px;
    background: var(--bg);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-main {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent);
}

.stat-goal {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-percent {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
}

/* 2. 다가오는 일정 리스트 */
.schedule-list-container {
    margin: 0 12px 16px;
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.home-next-schedule {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid var(--border);
}

.home-next-schedule:last-child {
    border-bottom: none;
}

.home-next-schedule:active {
    background: var(--bg);
}

.schedule-icon {
    font-size: 18px;
    width: 36px;
    height: 36px;
    background: var(--green-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.schedule-info {
    flex: 1;
    min-width: 0;
}

.schedule-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 2px;
}

.schedule-subject {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-time {
    font-size: 11px;
    color: var(--text-muted);
}

.schedule-dday {
    background: var(--green);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

/* 기존 섹션 라벨 간격 조정 */
.tab-section>.section-label:first-child {
    padding-top: 8px;
}