/* 2026 함께성장 Let's Grow 프로젝트 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', '맑은 고딕', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
.header {
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #667eea;
}

.header p {
    opacity: 0.95;
    font-size: 15px;
    color: #333;
}

/* Step Navigation */
.step-nav {
    display: flex;
    background: #ffffff;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 50;
}

.step-nav-item {
    flex: 1;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid transparent;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

/* Step 2 Container */
.step2-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
    height: 600px;
}

.step2-left, .step2-middle, .step2-right {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.grade-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.grade-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.grade-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.grade-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.list-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: rgba(102, 126, 234, 0.1);
    padding-left: 20px;
}

.list-item.selected {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    font-weight: 600;
}

.count-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Program Items */
.program-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.program-item.registered {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.12);
}

.program-item.registered:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.program-item.registered::before {
    content: '✓';
    display: block;
    font-size: 20px;
    color: #667eea;
    margin-bottom: 6px;
    font-weight: 700;
}

.program-name {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.programs-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.programs-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Statistics */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 4px solid #667eea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 15px;
}

.stat-detail {
    font-size: 13px;
    color: #6c757d;
}

.top-programs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.program-rank {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

.rank-number {
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    margin-right: 10px;
}

.program-stat-name {
    flex: 1;
    font-weight: 500;
}

.program-count {
    font-weight: 700;
    color: #667eea;
}

/* Scrollbar */
.list::-webkit-scrollbar {
    width: 6px;
}

.list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Responsive */
@media (max-width: 1024px) {
    .step2-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}
