@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600;700;800&display=swap');

:root {
    --sidebar-width: 500px; /* 긴 과정명 수용을 위한 너비 유지 */
    --main-blue: #2563eb;
    --sidebar-bg: #1e3a8a;
    --bg-light: #f8fafc;
}

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

body { 
    font-family: 'Pretendard', sans-serif; 
    background: #fff; 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
}

/* 상단 헤더: 교수님 말씀대로 비율에 맞게 확실히 키움 */
header { 
    height: 120px; 
    padding: 0 50px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #f1f5f9; 
    background: #fff; 
    flex-shrink: 0; 
}

.instructor-info { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ins-name { font-size: 2rem; font-weight: 800; color: #0f172a; }
.ins-email { font-size: 1rem; color: #64748b; }

.server-status { 
    background: #f0f7ff; 
    padding: 12px 40px; 
    border-radius: 12px; 
    border: 1px solid #dbeafe; 
    text-align: center;
}
.direct-run { font-size: 1rem; color: #1e40af; font-weight: 700; margin-bottom: 4px; }
.specs { font-size: 0.9rem; color: #3b82f6; font-weight: 600; }

.portal-tag { 
    font-size: 0.9rem; 
    font-weight: 700; 
    color: var(--main-blue); 
    border: 2px solid var(--main-blue); 
    padding: 5px 15px; 
    border-radius: 8px; 
}

.wrapper { display: flex; flex: 1; overflow: hidden; }

/* 좌측 메뉴: 글씨는 작고 정갈하게, 너비는 충분히 (여백 확보) */
nav { 
    width: var(--sidebar-width); 
    background: var(--sidebar-bg); 
    color: #fff; 
    padding: 40px 30px; 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 0; 
}

.menu-group { flex: 1; overflow-y: auto; }
.menu-main-title { 
    font-size: 1rem; 
    font-weight: 700; 
    margin-bottom: 30px; 
    color: #bfdbfe; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: 15px; 
}

.nav-box { 
    background: rgba(255,255,255,0.06); 
    padding: 25px; 
    border-radius: 14px; 
    margin-bottom: 20px; 
    cursor: pointer; 
    border: 2px solid transparent; 
}
.nav-box.active { border-color: #60a5fa; background: rgba(255, 255, 255, 0.12); }

.course-category { font-size: 0.8rem; color: #93c5fd; margin-bottom: 8px; font-weight: 700; }
.course-name { font-weight: 800; font-size: 1rem; line-height: 1.5; color: #fff; margin-bottom: 12px; word-break: keep-all; }
.stack-list { font-size: 0.8rem; color: #cbd5e1; line-height: 1.6; }

.sidebar-footer { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer p { font-size: 0.85rem; opacity: 0.6; }

/* 중앙 메인: 뚱뚱해 보이지 않도록 글씨 크기를 확 줄임 */
main { 
    flex: 1; 
    padding: 50px 60px; 
    background: var(--bg-light); 
    overflow-y: auto; 
}

.content-section { width: 100%; display: none; }
.content-section.active { display: block; animation: fadeIn 0.4s; }

.main-header { margin-bottom: 35px; }
.main-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; } /* 제목 크기 축소 */
.main-header p { font-size: 0.9rem; color: #64748b; }

.team-list { display: flex; flex-direction: column; gap: 12px; }
.team-card { 
    background: #fff; 
    padding: 18px 35px; /* 카드 안쪽 여백 축소 */
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    transition: 0.2s; 
}
.team-card:hover { border-color: var(--main-blue); transform: translateX(5px); }

.t-name { font-size: 1.05rem; font-weight: 800; width: 140px; color: #0f172a; } /* 팀명 축소 */
.t-desc { color: #475569; flex: 1; font-size: 0.9rem; } /* 설명 축소 */
.t-btn { font-weight: 700; color: var(--main-blue); font-size: 0.85rem; }

/* 모달 및 프로필 테이블 스타일 */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(8px); }
.modal-content { background: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 40px; border-radius: 20px; width: 550px; }
.modal-content.profile-size { width: 1100px; max-height: 85vh; overflow-y: auto; }

.profile-header { border-bottom: 3px solid var(--main-blue); margin-bottom: 30px; padding-bottom: 20px; }
.profile-body table { width: 100%; border-collapse: collapse; }
.profile-body td { padding: 18px 15px; border-bottom: 1px solid #f1f5f9; vertical-align: top; font-size: 0.95rem; line-height: 1.6; color: #334155; }
.p-date { width: 220px; font-weight: 800; color: var(--main-blue); }
.close { position: absolute; right: 25px; top: 20px; font-size: 30px; cursor: pointer; color: #94a3b8; }

.modal-btns a { display: block; padding: 12px; margin-top: 10px; border-radius: 8px; text-align: center; text-decoration: none; font-weight: 700; color: #fff; font-size: 0.9rem; }
.btn-ppt { background: #ef4444; }
.btn-video { background: #facc15; color: #1e293b !important; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
