/**
 * 모달 스타일
 */

/* 과정 진행률 모달 */
.progress-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.progress-modal-overlay.show {
    display: flex;
}

.progress-modal {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.progress-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: var(--primary-gradient);
    color: white;
}

.progress-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.progress-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.progress-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.progress-modal-body {
    padding: 28px;
    max-height: 65vh;
    overflow-y: auto;
}

/* 과정 카드 */
.course-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.course-card:last-child {
    margin-bottom: 0;
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.course-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.course-card-instructor {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.course-card-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: var(--success-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card-badge.completed {
    background: #94a3b8;
}

.course-card-badge.not-started {
    background: var(--warning-color);
}

.course-progress-bar {
    background: #e2e8f0;
    border-radius: 10px;
    height: 10px;
    margin: 16px 0;
    overflow: hidden;
}

.course-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--primary-gradient);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

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

.course-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.course-progress-percent {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
}

.course-dates {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* 모달 로딩 */
.modal-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* 강사 검색 결과 */
.instructor-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.instructor-date-group {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.instructor-date-group:hover {
    box-shadow: var(--shadow-md);
}

.instructor-date-group.weekend {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.instructor-date-group.holiday {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.instructor-date-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.instructor-date-header .date {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.instructor-date-header .weekday {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.instructor-date-header .weekday.saturday {
    color: #3b82f6;
}

.instructor-date-header .weekday.sunday {
    color: #ef4444;
}

.instructor-date-header .holiday-name {
    font-size: 11px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.instructor-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instructor-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.instructor-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.instructor-item.am {
    border-left: 4px solid #3b82f6;
}

.instructor-item.pm {
    border-left: 4px solid #f59e0b;
}

.instructor-item .classroom {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.instructor-item .subject {
    flex: 1;
    color: var(--text-secondary);
    font-weight: 500;
}

.instructor-item .hours {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 12px;
}
