/* --- 0. 기본 & 글꼴 설정 --- */
:root {
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    --color-bg: #f0f2f5;
    --color-card: #ffffff;
    --color-primary: #004a9e;
    --color-woori-blue: #0099FF;
    --color-accent: #00c73c;
    --color-text: #212529;
    --color-text-muted: #6c757d;
    --color-error: #d93025;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    
    --warning-banner-height-desktop: 40px; 
    --warning-banner-height-mobile: 44px;  
    --mobile-header-height: 100px;
    --desktop-header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    word-break: keep-all; 
    display: flex;
    flex-direction: column;
}

/* --- 1. 배경 애니메이션 --- */
.blob-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; }
.blob1 { width: 400px; height: 400px; background: var(--color-primary); top: -100px; left: -100px; animation: move 20s infinite alternate; }
.blob2 { width: 300px; height: 300px; background: var(--color-accent); bottom: -50px; right: -50px; animation: move 25s infinite alternate-reverse; }
@keyframes move {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(200px, 100px) rotate(180deg); }
}

/* --- 2. 카드 & 컨테이너 공통 --- */
.container { 
    max-width: 100%;
    width: 100%; 
    display: none; 
    animation: fadeIn 0.5s ease-out forwards; 
}
#login-container.container.active { 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
    box-sizing: border-box;
}
#dashboard-container.container.active { 
    display: block; 
    flex-grow: 1;
}
.card-content { 
    background-color: var(--color-card); 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-medium); 
    padding: 30px 35px; 
    z-index: 10; 
    position: relative; 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card { 
    background-color: #fcfcfc; 
    border: 1px solid #eee; 
    border-radius: var(--border-radius); 
    padding: 20px; 
    margin-bottom: 20px; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
    scroll-margin-top: calc(var(--warning-banner-height-mobile) + var(--mobile-header-height) + 20px); 
}

/* --- 3. 로그인 화면 --- */
#login-container .card-content {
    width: 100%;
    max-width: 500px; 
}

.login-header { text-align: center; margin-bottom: 30px; }
.logo-icon { font-size: 3rem; display: block; animation: bounce 1s infinite alternate; }
@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}
.login-title { 
    color: var(--color-primary);
    margin: 10px 0 5px 0;
    font-size: 1.8rem; 
    line-height: 1.3;
}
#login-container p { font-size: 1.1em; color: var(--color-text-muted); margin: 0; }
.form-group { margin-bottom: 18px; position: relative; }
.form-group label { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; color: var(--color-text); }
.form-group input { width: 100%; padding: 14px 14px 14px 16px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; font-size: 1em; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0, 74, 158, 0.1); }
#login-btn { 
    width: 100%; padding: 15px; font-size: 1.1em; font-weight: 700; color: #fff; background: var(--color-woori-blue); border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; 
}
#login-btn:hover { 
    background: #008ae6; 
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.4);
    transform: translateY(-2px) scale(1.03); 
}
#login-btn.loading #login-btn-text { display: none; }
#login-btn.loading #login-loader { display: block; }
.loader-small { display: none; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, 0.5); border-top: 3px solid #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-large {
    width: 40px;
    height: 40px;
    border: 5px solid rgba(0, 74, 158, 0.2);
    border-top: 5px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.main-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: var(--border-radius);
}
@media (min-width: 900px) {
    .main-loader-overlay {
        border-radius: 0;
    }
}


/* --- 4. 대시보드 공통 --- */
.header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.header h2 { display: none; }
.data-notice { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.05em; 
    font-weight: 500; 
    color: var(--color-text-muted); 
    background-color: #f8f9fa; 
    padding: 12px 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
}
.data-notice span { display: flex; align-items: center; gap: 6px; }

.status-badge { display: inline-block; padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 1em; margin-bottom: 25px; animation: fadeIn 0.5s 0.2s backwards; }
.status-badge.completed { 
    background: linear-gradient(90deg, #e6f7ec, #d1f7e0); 
    color: #008a38; 
    box-shadow: 0 2px 8px rgba(0, 138, 56, 0.2); 
    animation: bobbing 1s infinite ease-in-out;
}
.status-badge.in-progress { background: linear-gradient(90deg, #fff8e1, #fff0c2); color: #e6a000; box-shadow: 0 2px 8px rgba(230, 160, 0, 0.2); }
.progress-section { margin-bottom: 20px; }
.progress-section h4 { 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    gap: 10px; 
    margin: 0 0 10px 0; 
    font-weight: 600; 
    font-size: 1.1em;
}
.progress-section h4 > span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}
.h4-metric {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-primary);
}
#exam-metric .h4-metric {
    color: var(--color-primary);
}

.progress-bar-container { width: 100%; height: 20px; background-color: #e9ecef; border-radius: 10px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--color-accent), #00e065); border-radius: 10px; transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1); box-shadow: 0 0 10px rgba(0, 199, 60, 0.5); }
.progress-bar.exam { background: linear-gradient(90deg, var(--color-primary), #006aff); box-shadow: 0 0 10px rgba(0, 74, 158, 0.5); }
.progress-label { display: block; text-align: right; font-weight: 600; font-size: 1.1em; margin-top: 8px; color: var(--color-primary); }
.progress-section.metric-item { display: block; }
.progress-section.metric-item.hidden { display: none; }

.card h4 { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-top: 0; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
    color: var(--color-primary);
    font-size: 1.35em;
    flex-wrap: nowrap;
    overflow: hidden;
}
#course-name {
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.h4-emoji {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}
.card:hover h4 .h4-emoji {
    transform: rotate(-10deg) scale(1.15);
}


.time-card ul { list-style: none; padding-left: 0; margin-bottom: 15px; }
.time-card li { font-size: 1.1em; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #eee; padding-bottom: 10px; }
.time-card li strong { font-size: 1.1em; }
.warning strong { color: var(--color-error); }
.note { font-size: 0.9em; color: var(--color-text-muted); background-color: #f8f9fa; padding: 12px; border-radius: 8px; border-left: 4px solid var(--color-accent); }

/* [!!!] (v0.58) '과정 개요' / 'FAQ' details 스타일 통일 */
details { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 10px; transition: background-color 0.2s ease; }
summary { 
    cursor: pointer; 
    font-weight: 600; 
    padding: 5px 0; 
    transition: color 0.2s; 
    font-size: 1.05em;
}
summary:hover { color: var(--color-primary); }
details[open] { 
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 5px 10px 10px 10px;
}
details[open] summary { 
    color: var(--color-primary); 
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}
details p { 
    margin-top: 15px; /* (v0.58) FAQ 간격 조정 */
    padding-left: 10px; 
    border-left: 3px solid var(--color-primary); 
    font-size: 0.95em; 
    line-height: 1.7; 
}
/* [!!!] (NEW) v0.58: '과정 개요' 목록 스타일 */
.course-info-card details p {
    padding-left: 0;
    border-left: none;
    margin-top: 10px;
}
.course-info-card details ul {
    list-style-type: '•  '; /* 말머리표 */
    padding-left: 20px;
    margin: 0;
}
.course-info-card details li {
    margin-bottom: 10px; /* 항목 간 줄 띄움 */
    padding-left: 5px;
    line-height: 1.6;
}
.course-info-card details li strong {
    color: var(--color-primary);
    font-weight: 600;
}
/* (v0.57) '학습 방법' 텍스트 강조 (이제 사용 안함) */
details p strong {
    display: inline;
    margin-bottom: 0;
}


.resources-card p, .survey-card p, .contact-card p {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* --- 5. 과정 선택 드롭다운 (v21) --- */
.course-switcher-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
    background-color: #f8f9fa; 
    border-radius: var(--border-radius); 
    padding: 0 10px; 
    flex-grow: 1; 
    border: 1px solid #eee;
    flex-shrink: 1; 
    min-width: 0; 
}
.course-switcher-wrapper .header-emoji { font-size: 1.2em; margin-left: 5px; }
.course-switcher-wrapper .chevron-icon { display: none; }
#course-switcher, #course-switcher-mobile { 
    width: 100%; 
    padding: 12px 10px 12px 10px; 
    font-size: 1.15em; 
    font-weight: 700; 
    color: var(--color-primary); 
    border: none; 
    background-color: transparent; 
    cursor: pointer; 
    -webkit-appearance: menulist; 
    -moz-appearance: menulist; 
    appearance: menulist; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
    overflow: hidden;
}
#course-switcher:focus, #course-switcher-mobile:focus { outline: none; }
#logout-btn, #logout-btn-mobile {
    width: auto; 
    height: 44px; 
    padding: 0 15px; 
    font-size: 0.95em; 
    font-weight: 600; 
    line-height: 44px; 
    text-align: center; 
    background-color: #f0f0f0; 
    color: var(--color-text-muted); 
    border-radius: var(--border-radius); 
    flex-shrink: 0; 
    border: none; 
    cursor: pointer; 
    transition: all 0.2s ease;
}
#logout-btn:hover, #logout-btn-mobile:hover {
    background-color: #fbebee; 
    color: var(--color-error); 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-light);
}

/* --- 6. 개요 카드 및 테이블 (v21) --- */
.overview-card h4 { margin-top: 0; margin-bottom: 15px; display: flex; align-items: center; color: var(--color-primary); }
.overview-table { width: 100%; border-collapse: collapse; font-size: 1.1em; }
.overview-table th,
.overview-table td { padding: 14px 10px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.overview-table th { font-weight: 500; color: var(--color-text-muted); width: 40%; }
.overview-table td { font-weight: 600; color: var(--color-text); }
.overview-table tr.divider th,
.overview-table tr.divider td { border-top: 2px solid #e9ecef; }
.metric-value-small { font-weight: 700 !important; color: var(--color-primary) !important; }
.status-cell { font-weight: 700 !important; }
.status-cell.completed { color: #008a38; }
.status-cell.in-progress { color: #e6a000; }
.hidden-row { display: none; }

/* (v0.57) '확인 필요' 관련 스타일 모두 삭제 */


/* --- 7. 비활성 드롭다운 (v21) --- */
.course-switcher-wrapper.disabled { background-color: #f0f2f5; cursor: not-allowed; opacity: 0.8; }
.course-switcher-wrapper.disabled select { cursor: not-allowed; pointer-events: none; }

/* --- 8. 문의하기 카드 (v22) --- */
.contact-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px; font-size: 1.1em; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--color-primary), #006aff); border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.contact-btn:hover { 
    box-shadow: 0 5px 15px rgba(0, 74, 158, 0.4); 
    transform: translateY(-2px) scale(1.03); 
}
.contact-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }


/* --- 9. 애니메이션 (v21) --- */
@keyframes running-man {
  0% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  100% { transform: translateX(-3px); }
}
.status-badge.in-progress { 
    display: inline-block; 
    animation: running-man 1.2s infinite ease-in-out; 
}
@keyframes bobbing {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
.status-badge.completed {
    display: inline-block; 
    animation: bobbing 1s infinite ease-in-out; 
}

/* --- 10. (v24) 로고 헤더 (재구성) --- */
.dashboard-title-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.logo-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.header-woori-logo-img {
    height: 30px;
    width: auto;
    animation: logo-pulse 3s infinite ease-in-out;
}
.dashboard-subtitle {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--color-primary);
    text-align: center;
    margin: 0;
}
@keyframes logo-pulse {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.05); opacity: 0.95; }
    100% { transform: scale(1); opacity: 1; }
}


/* --- 11. (v23) 플로팅 버튼 (우리은행 파란색) --- */
.floating-action-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-woori-blue); 
    color: white;
    font-size: 1.1em;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4); 
    z-index: 1000;
    transition: all 0.3s ease;
    animation: bounce-slow 2s infinite ease-in-out;
}
.floating-action-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.6); 
    animation-play-state: paused;
}
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* --- 12. (v30) 최상단 경고 배너 --- */
#global-warning-banner {
    background-color: #fff8e1; 
    border: 1px solid #e6a000;
    color: #e6a000; 
    padding: 8px 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0; 
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    position: sticky;
    top: 0;
    z-index: 1001; 
    width: 100%;
    box-sizing: border-box; 
    border-radius: 0; 
    border-left: 0;
    border-right: 0;
    flex-direction: column;
    height: auto; 
    min-height: 0;
}
#global-warning-banner span {
    white-space: nowrap;
}


/* --- 13. (v25) 감사 문구 (카드 하단) --- */
.card-footer-thanks {
    display: none;
}

/* --- 14. (v24) 강조 숫자 애니메이션 --- */
#course-count-number, #course-count-number-mobile {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--color-woori-blue);
    display: inline-block;
    animation: pulse-blue 1.5s infinite ease-in-out;
    margin: 0 4px;
}

@keyframes pulse-blue {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- 15. (v26) FAQ 내부 링크 스타일 --- */
/* [!!!] (v0.58) FAQ 버튼 스타일 변경 */
.faq-link {
    display: inline-block;
    background-color: var(--color-woori-blue);
    color: #ffffff;
    padding: 10px 14px; /* 패딩 키움 */
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.faq-link:hover {
    background-color: #008ae6;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 153, 255, 0.3);
}
.faq-warning {
    color: var(--color-error);
    font-weight: 600;
    display: block; 
    margin-top: 8px;
    background-color: rgba(217, 48, 37, 0.05);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid var(--color-error);
}

/* (v28) 카드 액션 버튼 (공용) */
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.action-btn-primary {
    flex: 1; min-width: 150px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 1.05em; font-weight: 700; color: #fff; background: var(--color-woori-blue); border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.action-btn-primary:hover {
    background: #008ae6;
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.4);
    transform: translateY(-2px) scale(1.03);
}
.action-btn-secondary {
    flex: 1; min-width: 150px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 1.05em; font-weight: 600; color: var(--color-text-muted); background-color: #f0f2f5; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.action-btn-secondary:hover {
    background-color: #e0e5eb;
    color: var(--color-text);
    transform: translateY(-2px) scale(1.03);
}
.action-btn-survey {
    flex: 1; min-width: 150px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 1.05em; font-weight: 700; color: #fff; background: var(--color-woori-blue); border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.action-btn-survey:hover {
    background: #008ae6;
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.4);
    transform: translateY(-2px) scale(1.03);
}

.card-warning-message {
    display: none;
    width: 100%;
    background-color: #fff8e1;
    border: 1px solid #e6a000;
    color: #e6a000;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
}

.quick-nav-card {
    display: none;
}


/* (v33) 데스크톱 고정 헤더 (슬림) */
#main-header {
    position: sticky;
    top: var(--warning-banner-height-desktop); 
    z-index: 900;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 15px 30px;
    width: 100%;
    box-sizing: border-box;
    display: none; 
}
.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 0;
}
.header-controls .course-switcher-wrapper {
    flex-grow: 0;
    flex-shrink: 1; 
    min-width: 0; 
    max-width: 500px;
    height: 44px;
    padding: 0 10px;
}
.header-controls .data-notice {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    height: 44px;
    padding: 0 15px;
    margin: 0;
    box-sizing: border-box;
    font-size: 1.05em;
    color: var(--color-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0; 
    white-space: nowrap; 
}

.header-title-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}


/* (v33) PC 우측 세로 메뉴 */
.quick-nav-bar-pc {
    display: none;
}
.quick-nav-title {
    display: none; 
}
.action-btn-quicknav {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-primary);
    background-color: #f0f2f5;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.action-btn-quicknav:hover {
    background-color: #e0e5eb;
    transform: translateY(-2px);
}
.quick-nav-bar-pc #logout-btn {
    margin-left: 0;
    height: 32px;
    line-height: 32px;
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
}


/* (v33) 데스크톱 메인/사이드 래퍼 */
.dashboard-body-wrapper {
    position: relative;
}

/* (v33) 메인 스크롤 콘텐츠 */
#main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
    position: relative;
}

/* (v33) 모바일 햄버거 메뉴 */
#mobile-header {
    position: sticky;
    top: var(--warning-banner-height-mobile); 
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    box-sizing: border-box;
}
.mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
}
.mobile-logo {
    height: 24px;
    width: auto;
}
.mobile-title {
    font-size: 1.15em;
    font-weight: 800;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}
.hamburger-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    flex-shrink: 0;
}
.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
#mobile-header-controls {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}
#main-header .course-switcher-wrapper,
#main-header .data-notice {
    display: none;
}

#mobile-header-controls .course-switcher-wrapper {
    margin-right: 0;
    display: flex;
    height: 44px;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
}
#mobile-header-controls .data-notice {
    margin: 0;
    font-size: 0.95em;
    padding: 0 15px;
    display: flex;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    height: 44px;
    box-sizing: border-box;
    flex-shrink: 0;
    white-space: nowrap;
}

/* (v29) 모바일 오버레이 (숨겨진 메뉴) */
#mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1002;
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
#mobile-nav-overlay.visible {
    transform: translateX(0); 
}
#mobile-nav-content {
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: var(--color-bg); 
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    position: absolute;
    top: 0;
    right: 0;
    padding-bottom: 80px; 
}
.overlay-header {
    display: none;
}
#mobile-nav-footer {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    max-width: 400px;
    padding: 20px;
    box-sizing: border-box;
    background: var(--color-bg);
    border-top: 1px solid #eee;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
#menu-close-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* (v33) 모바일 메뉴 내부 */
#mobile-nav-content #quick-nav-bar-mobile {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    align-items: stretch; 
}
#mobile-nav-content #quick-nav-bar-mobile .action-btn-quicknav {
    font-size: 1em;
    padding: 12px;
    text-align: center;
}
#mobile-nav-content #logout-btn-mobile {
    width: 100%;
    font-size: 1em;
    margin-top: 20px;
    margin-left: 0;
    background-color: #fbebee;
    color: var(--color-error);
    border: 1px solid rgba(217, 48, 37, 0.5);
}
#mobile-nav-content #logout-btn-mobile:hover {
    background-color: #f8d7da;
    border-color: var(--color-error);
    transform: translateY(0);
    box-shadow: none;
}

/* (v0.34) 카드 슬라이드업 애니메이션 */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.anim-slide-in-up {
    animation: slideInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}
#main-content .anim-slide-in-up:nth-child(1) { animation-delay: 0.1s; }
#main-content .anim-slide-in-up:nth-child(2) { animation-delay: 0.15s; }
#main-content .anim-slide-in-up:nth-child(3) { animation-delay: 0.2s; }
#main-content .anim-slide-in-up:nth-child(4) { animation-delay: 0.25s; }
#main-content .anim-slide-in-up:nth-child(5) { animation-delay: 0.3s; }
#main-content .anim-slide-in-up:nth-child(6) { animation-delay: 0.35s; }
#main-content .anim-slide-in-up:nth-child(7) { animation-delay: 0.4s; }
#main-content .anim-slide-in-up:nth-child(8) { animation-delay: 0.45s; }


/* (v33) 미디어 쿼리 (레이아웃 전환) */
@media (max-width: 899px) {
    #main-header {
        display: none;
    }
    
    #global-warning-banner {
        flex-direction: row;
        justify-content: center;
        gap: 4px;
        padding: 8px 15px;
        height: auto;
        min-height: var(--warning-banner-height-mobile);
    }
    
    .quick-nav-bar-pc {
        display: none;
    }
    
    .dashboard-body-wrapper {
        display: block;
        padding: 0;
    }
    
    #main-content {
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }

    .anim-slide-in-up {
        animation: none;
        opacity: 1;
    }
    
    .progress-label {
        font-size: 1.0em;
    }
    .time-card li {
        font-size: 1.05em;
    }
    details p {
        font-size: 0.95em;
    }
    .note {
        font-size: 0.9em;
    }
    .progress-section h4 {
        font-size: 1.0em;
        flex-wrap: wrap;
    }
    .h4-metric {
        font-size: 1.0em;
    }
    
    #mobile-header-controls .course-switcher-wrapper {
         padding: 0 5px;
    }
    #mobile-header-controls #course-switcher-mobile {
        font-size: 1.0em;
        padding: 12px 5px;
    }
    
    #course-details.card h4 {
        font-size: 1.2em;
        flex-wrap: wrap;
    }
    #course-details.card h4 #course-name {
        font-size: 1.0em;
        white-space: normal;
    }
}

@media (min-width: 900px) {
    #mobile-header {
        display: none;
    }
    #mobile-nav-overlay {
        display: none;
    }
    
    #mobile-header-controls .course-switcher-wrapper,
    #mobile-header-controls .data-notice {
        display: none;
    }
    #main-header .course-switcher-wrapper,
    #main-header .data-notice {
        display: flex;
    }
    
    #main-header {
        display: block;
        top: var(--warning-banner-height-desktop); 
    }
    
    #global-warning-banner {
        flex-direction: row;
        justify-content: center;
        height: var(--warning-banner-height-desktop);
    }
    
    .dashboard-body-wrapper {
        display: flex;
        flex-direction: row-reverse;
        max-width: 1200px;
        margin: 20px auto 0 auto;
        padding: 0 20px;
        gap: 20px;
        align-items: flex-start;
        position: relative;
    }

    #main-content {
        flex-grow: 1;
        min-width: 0;
        max-width: 1000px;
        margin: 0;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    .quick-nav-bar-pc {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 10px;
        width: 180px;
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--warning-banner-height-desktop) + var(--desktop-header-height) + 20px);
        background-color: var(--color-card);
        border: 1px solid #eee;
        border-radius: var(--border-radius);
        padding: 15px;
        box-shadow: var(--shadow-light);
    }
    .quick-nav-links-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .quick-nav-bar-pc .action-btn-quicknav {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 10px 12px;
        font-size: 1em;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-light);
    }
    
    .card {
        scroll-margin-top: calc(var(--warning-banner-height-desktop) + var(--desktop-header-height) + 20px); 
    }

    .quick-nav-card .card-actions {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .quick-nav-card .action-btn-secondary {
        min-width: auto;
    }

    .floating-action-button {
        display: none;
    }
}

/* (v0.34) Footer 개편 */
#main-footer {
    width: 100%;
    padding: 25px 30px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 40px;
    background-color: var(--color-card);
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
    flex-shrink: 0;
}
.footer-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.footer-udemy-logo {
    height: 28px;
    opacity: 0.7;
}
.footer-thanks, .footer-right p {
    margin: 0;
    font-size: 0.9em;
    color: var(--color-text-muted);
}
.footer-thanks {
    display: none;
}

@media (max-width: 599px) {
    .footer-content-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    .footer-left {
        gap: 10px;
    }
}
