@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

body { 
    font-family: 'Pretendard', sans-serif; 
    background-color: #f4f6f9; 
    color: #0f172a; 
    letter-spacing: -0.018em;
} 

/* 얇고 심플한 고급 스크롤바 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
::-webkit-scrollbar-track { background: transparent; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 🎨 톤앤톤(Tone-on-Tone) 카드 음영 · 마이크로 애니메이션 · 필수 포인트 컬러 시스템 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.97) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-scale-in { animation: scaleIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* 그리드 내부 인풋/셀렉트 겹침 원천 차단 (직접입력 창 겹침 방지) */
.grid > * {
    min-width: 0;
}
input, select, textarea, button {
    transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
    border-color: #334155 !important;
}
button:active {
    transform: scale(0.985);
}

/* 톤앤톤 카드 및 모달 고급 음영 */
.ct-card-surface {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 4px -1px rgba(15, 23, 42, 0.03);
}
.ct-tone-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 3px rgba(15, 23, 42, 0.02);
}

/* 필수 포인트 컬러: 카카오톡 노란색 & 삭제 빨간색 */
.btn-kakao-point {
    background-color: #FEE500 !important;
    color: #191919 !important;
    border: 1px solid #edd600 !important;
    box-shadow: 0 2px 8px rgba(254, 229, 0, 0.28);
}
.btn-kakao-point:hover {
    background-color: #f5dc00 !important;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.42);
    transform: translateY(-1px);
}
.btn-danger-point {
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
    border: 1px solid #fecdd3 !important;
}
.btn-danger-point:hover {
    background-color: #e11d48 !important;
    color: #ffffff !important;
    border-color: #e11d48 !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.22);
}

/* ℹ️ 인포메이션(i) 배지 및 마우스 오버/터치 툴팁 스타일 */
.ct-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 9999px;
    background-color: #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    cursor: help;
    user-select: none;
    flex-shrink: 0;
    transition: all 0.18s ease;
    vertical-align: middle;
}
.ct-info-btn:hover, .ct-info-btn:focus, .ct-info-btn.active-tip {
    background-color: #0f172a;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}
#ctGlobalFloatingTooltip {
    position: fixed;
    z-index: 99999;
    max-width: 270px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    word-break: keep-all;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px) scale(0.97);
    transition: opacity 0.16s ease, transform 0.16s ease;
}
#ctGlobalFloatingTooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 커스텀 셀렉트 드롭다운 아이콘 */
.custom-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2216%22 height=%2216%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%2364748b%22 stroke-width=%222.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%226 9 12 15 18 9%22%3E%3C/polyline%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1.05em;
    padding-right: 2.4rem;
}

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out; }
.accordion-content.expanded { max-height: 950px; }

/* 🔥 캘린더 테마 (숫자 크기 확대 및 격자선 투명화) */
.fc { font-family: 'Pretendard', sans-serif; font-size: 0.9rem; }
.fc .fc-toolbar-title { font-weight: 900; font-size: 1.25rem; color: #0f172a; }
.fc .fc-button-primary { background-color: #0f172a !important; border-color: #0f172a !important; font-weight: 800 !important; border-radius: 0.5rem !important; text-transform: capitalize; padding: 0.5rem 1rem !important; }
.fc .fc-button-primary:hover { background-color: #1e293b !important; }

/* 격자선 투명화 및 숫자 크기 상향 */
.fc .fc-scrollgrid { border: none !important; }
.fc .fc-scrollgrid td, .fc .fc-scrollgrid th { border: none !important; border-bottom: 1px solid #f8fafc !important; }
.fc .fc-daygrid-day-frame { border: none !important; min-height: 85px; }
.fc .fc-daygrid-day-top { justify-content: center; padding-top: 8px; }
.fc .fc-daygrid-day-number { font-weight: 900; font-size: 18px !important; color: #0f172a; }
.fc-theme-standard td, .fc-theme-standard th { border-color: transparent !important; }
.fc .fc-daygrid-day.fc-day-today { background-color: #f1f5f9; border-radius: 12px; }

/* 기존 막대기 이벤트 투명 처리 */
.fc-event { 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    cursor: default; 
}
.fc-event:hover { background-color: transparent !important; }

/* 모바일 노치(safe-area) 및 네이티브 앱 터치 최적화 지원 */
html, body {
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    overflow-wrap: break-word;
    max-width: 100vw;
    overflow-x: hidden;
}
.pb-safe { padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)); }
.pt-safe { padding-top: max(0px, env(safe-area-inset-top, 0px)); }
.pt-safe-header { padding-top: calc(0.75rem + env(safe-area-inset-top, 0px)) !important; }
.top-safe-offset { top: env(safe-area-inset-top, 0px) !important; }
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

/* 🔦 스포트라이트(Spotlight) 인터랙티브 튜토리얼 링 효과 */
#tutorialSpotlightRing {
    position: fixed;
    z-index: 8002;
    pointer-events: none;
    border-radius: 18px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.78), 0 0 0 4px #3b82f6, 0 0 28px rgba(59, 130, 246, 0.85);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes spotlightPulse {
    0%, 100% { box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.78), 0 0 0 4px #3b82f6, 0 0 24px rgba(59, 130, 246, 0.75); }
    50% { box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.78), 0 0 0 7px #60a5fa, 0 0 36px rgba(96, 165, 250, 1); }
}
.spotlight-pulse {
    animation: spotlightPulse 1.8s infinite ease-in-out;
}

/* 📱 네이티브 앱 스타일 플로팅 하단 독(Dock) */
.app-bottom-dock {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}
.nav-mbtn.active-dock-btn {
    color: #0f172a !important;
    background: #f1f5f9;
    border-radius: 14px;
}

/* 📱 모바일 화면 전용 FullCalendar 및 입력폼 최적화 */
@media (max-width: 767px) {
    .fc .fc-header-toolbar {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch !important;
    }
    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .fc .fc-toolbar-title {
        font-size: 1.05rem;
    }
    .fc .fc-button-primary {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.75rem !important;
    }
    .fc .fc-daygrid-day-frame {
        min-height: 64px;
    }
    .fc .fc-daygrid-day-number {
        font-size: 14px !important;
    }
    .custom-select {
        background-position: right 0.75rem center;
        padding-right: 2rem;
    }
}

/* =========================================================================
   🎨 4대 멀티 디자인 테마 시스템 (기본 / 러블리 / 청춘 / 엑셀)
   모바일 퍼스트 + 태블릿(Pad) + PC 완벽 반응형 스킨 엔진
   ========================================================================= */

/* 테마 전용 데코 요소 기본값 (기본 모드에서는 무조건 숨김 - Tailwind 클래스 충돌 원천 차단) */
.theme-only-diary,
.theme-only-lovely,
.theme-only-youth,
.theme-only-excel {
    display: none !important;
}

body[data-theme="lovely"] .theme-only-diary,
body[data-theme="lovely"] .theme-only-lovely {
    display: flex !important;
}
body[data-theme="youth"] .theme-only-diary,
body[data-theme="youth"] .theme-only-youth {
    display: flex !important;
}
body[data-theme="excel"] .theme-only-excel {
    display: flex !important;
}

/* 테마 스위처 캡슐 버튼 공통 (모든 테마에서 글자 가독성 100% 보장) */
.ct-theme-switcher-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 9999px;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    max-width: 100%;
    overflow-x: auto;
}
.ct-theme-switcher-pill .ct-theme-btn {
    padding: 5px 10px;
    border-radius: 9999px !important;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    color: #334155 !important;
    background: transparent !important;
    transition: all 0.18s ease;
    cursor: pointer;
    line-height: 1.2;
}
.ct-theme-switcher-pill .ct-theme-btn:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}
.ct-theme-switcher-pill .ct-theme-btn.active-theme {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}

/* 마스킹 테이프 (와시 테이프) 그래픽 */
.ct-washi-tape {
    width: 118px;
    height: 26px;
    margin: -22px auto 4px auto;
    border-radius: 3px;
    opacity: 0.94;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
body[data-theme="lovely"] .ct-washi-tape {
    display: block !important;
    transform: rotate(-2.5deg);
    background-color: #f4c6ce;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 6px, transparent 6px, transparent 12px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 6px, transparent 6px, transparent 12px);
    border: 1px dashed rgba(255, 255, 255, 0.8);
}
body[data-theme="youth"] .ct-washi-tape {
    display: block !important;
    transform: rotate(-2deg);
    background: repeating-linear-gradient(
        -55deg,
        #243648,
        #243648 7px,
        #dce6e9 7px,
        #dce6e9 14px
    );
    border: 1px solid rgba(36, 54, 72, 0.35);
}

/* 미니 카드 상단 고정 테이프 */
.ct-mini-top-tape {
    width: 44px;
    height: 12px;
    margin: -14px auto 4px auto;
    border-radius: 2px;
}
body[data-theme="lovely"] .ct-mini-top-tape {
    display: block !important;
    background: rgba(235, 212, 188, 0.82);
    border: 1px solid rgba(210, 180, 150, 0.4);
}
body[data-theme="youth"] .ct-mini-top-tape {
    display: block !important;
    background: #243648;
}

/* 💻 태블릿(Pad) & PC 전용 아이패드 베젤 프레임 & 책상 배경 이미지 (모바일 <768px 에서는 미적용) */
@media (min-width: 768px) {
    body[data-theme="lovely"] #teacherModeWrapper {
        background-image: var(--ct-custom-bg, url('./bg_lovely_desk.jpg')) !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    body[data-theme="youth"] #teacherModeWrapper {
        background-image: var(--ct-custom-bg, url('./bg_youth_desk.jpg')) !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    body.has-custom-bg[data-theme="default"] #teacherModeWrapper,
    body.has-custom-bg[data-theme="excel"] #teacherModeWrapper {
        background-image: var(--ct-custom-bg) !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    body[data-theme="lovely"] #reportIpadBezelContainer,
    body[data-theme="youth"] #reportIpadBezelContainer {
        position: relative;
        border: 14px solid #18181b;
        border-radius: 2.6rem;
        padding: 1.5rem 1.75rem 1.25rem 1.75rem;
        box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38), 0 0 0 2px rgba(255, 255, 255, 0.28);
        backdrop-filter: blur(8px);
    }
    body[data-theme="lovely"] #reportIpadBezelContainer {
        background: rgba(248, 238, 230, 0.94);
    }
    body[data-theme="youth"] #reportIpadBezelContainer {
        background: rgba(214, 227, 230, 0.95);
    }
}

/* =========================================================================
   🌸 [테마 2: 러블리 (Lovely)] - 첫 번째 사진 소녀 감성 다이어리/다꾸 스타일
   ========================================================================= */
body[data-theme="lovely"] {
    background: linear-gradient(145deg, #fdf6f0 0%, #faebe9 50%, #f4e8ef 100%) !important;
    color: #3d2629 !important;
}
body[data-theme="lovely"] main {
    background: transparent !important;
}
body[data-theme="lovely"] header,
body[data-theme="lovely"] aside#teacherSidebar,
body[data-theme="lovely"] .app-bottom-dock {
    background: rgba(255, 250, 247, 0.97) !important;
    border-color: #f0cfd6 !important;
}
body[data-theme="lovely"] #masterModeBar {
    background: #f5dde0 !important;
    color: #4a2c30 !important;
    border-bottom: 1px solid #e6b4be !important;
}
body[data-theme="lovely"] #masterModeBar #modeBarRoleLabel,
body[data-theme="lovely"] #masterModeBar span.bg-yellow-400 {
    background: #ffffff !important;
    color: #5c3439 !important;
    border: 1px solid #e2aeb8 !important;
}
body[data-theme="lovely"] .ct-card-surface {
    background: #fffdfb !important;
    border: 2px solid #f0cfd6 !important;
    box-shadow: 0 12px 32px -6px rgba(145, 90, 100, 0.16), 0 4px 12px rgba(145, 90, 100, 0.08) !important;
}
body[data-theme="lovely"] .ct-tone-box {
    background: #fdf5f6 !important;
    border: 1.5px solid #eecad1 !important;
}
body[data-theme="lovely"] #studentSelect {
    background: linear-gradient(110deg, #f3f0f8 0%, #f3f0f8 54%, #e5dff4 54.2%, #e5dff4 100%) !important;
    border: 1.5px solid #cfc4e4 !important;
    color: #2f1f24 !important;
    border-radius: 1.15rem !important;
}
body[data-theme="lovely"] #studentProfileHeroCard {
    background: linear-gradient(135deg, #fce8eb 0%, #f7d2da 60%, #fbe4d6 100%) !important;
    border: 2px solid #ebaeb9 !important;
    box-shadow: 0 6px 18px rgba(210, 135, 152, 0.22) !important;
}
body[data-theme="lovely"] #studentProfileHeroCard #selectedCardName {
    color: #2f1d20 !important;
}
body[data-theme="lovely"] #studentProfileHeroCard #selectedCardDesc {
    color: #5c3d42 !important;
}
body[data-theme="lovely"] #sidebarCycleRound {
    background: #6c88c4 !important;
    color: #ffffff !important;
}
body[data-theme="lovely"] #selectedCardExamDDay button,
body[data-theme="lovely"] #selectedCardExamDDay span {
    background: #7c3a47 !important;
    color: #ffffff !important;
    border-color: #632b36 !important;
}
body[data-theme="lovely"] #btnThemeKakaoMain,
body[data-theme="lovely"] .btn-kakao-point {
    background: linear-gradient(180deg, #fae5cd 0%, #f3d2b0 100%) !important;
    color: #3b261b !important;
    border: 1.5px solid #dcaf82 !important;
    box-shadow: 0 3px 0 #cfa072, 0 4px 10px rgba(190, 140, 95, 0.18) !important;
}
body[data-theme="lovely"] #btnCopyParentPortalMain {
    background: linear-gradient(180deg, #e5e8f8 0%, #d4d9f2 100%) !important;
    color: #2e3352 !important;
    border: 1.5px solid #b5bee4 !important;
    box-shadow: 0 3px 0 #a3add9 !important;
}
body[data-theme="lovely"] #btnGraduatedMain {
    background: linear-gradient(180deg, #f8e2e6 0%, #efd0d6 100%) !important;
    color: #4a2c32 !important;
    border: 1.5px solid #dbaeb7 !important;
    box-shadow: 0 3px 0 #cc9ca6 !important;
}
body[data-theme="lovely"] .ct-side-note-card {
    background: #fffdfa !important;
    border: 1.5px solid #e8c8cf !important;
    box-shadow: 4px 6px 16px rgba(145, 95, 105, 0.14) !important;
}
body[data-theme="lovely"] .ct-theme-switcher-pill .ct-theme-btn.active-theme {
    background: #d96b86 !important;
    color: #ffffff !important;
}

/* =========================================================================
   🚀 [테마 3: 청춘 (Youth)] - 두 번째 사진 소년들의 공부 일기 / 아지트 스타일
   상단바·헤더·사이드바·카드 전체 컬러 변환 및 고대비 가독성 보장
   ========================================================================= */
body[data-theme="youth"] {
    background: linear-gradient(145deg, #d6e3e6 0%, #c7d8dc 55%, #b8cdd2 100%) !important;
    color: #162430 !important;
}
body[data-theme="youth"] main {
    background: transparent !important;
}
body[data-theme="youth"] #masterModeBar {
    background: #14202e !important;
    color: #f8fafc !important;
    border-bottom: 2px solid #2d4356 !important;
}
body[data-theme="youth"] header {
    background: linear-gradient(90deg, #243648 0%, #2e4459 55%, #364f66 100%) !important;
    border-bottom: 2px solid #182634 !important;
    color: #ffffff !important;
}
body[data-theme="youth"] header #mainHeaderTitle,
body[data-theme="youth"] header #mobileHeaderTitle {
    color: #ffffff !important;
}
body[data-theme="youth"] header #currentModeBadge {
    background: #f59e0b !important;
    color: #18222c !important;
    border-color: #fbbf24 !important;
    font-weight: 900 !important;
}
body[data-theme="youth"] aside#teacherSidebar {
    background: #d2e0e4 !important;
    border-right: 2px solid #9ab2ba !important;
}
body[data-theme="youth"] aside#teacherSidebar nav button.active {
    background: #243648 !important;
    color: #ffffff !important;
}
body[data-theme="youth"] .app-bottom-dock {
    background: rgba(235, 243, 245, 0.97) !important;
    border-top: 2px solid #9ab2ba !important;
}
body[data-theme="youth"] .ct-card-surface {
    background: #fbfaf6 !important;
    border: 2.5px solid #243648 !important;
    box-shadow: 0 10px 0 rgba(36, 54, 72, 0.18), 0 14px 28px rgba(22, 36, 48, 0.2) !important;
}
body[data-theme="youth"] .ct-tone-box {
    background: #eef3f0 !important;
    border: 1.5px solid #8fa69b !important;
}
body[data-theme="youth"] #studentSelect {
    background-color: #2c4054 !important;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2216%22 height=%2216%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%222.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%229 18 15 12 9 6%22%3E%3C/polyline%3E%3C/svg%3E') !important;
    border: 2px solid #1b2836 !important;
    color: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2) !important;
}
body[data-theme="youth"] #studentSelect option {
    background: #ffffff !important;
    color: #1e293b !important;
}
body[data-theme="youth"] #studentProfileHeroCard {
    background: #445a4a !important;
    border: 2px solid #28382c !important;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 6px 14px rgba(40, 56, 44, 0.24) !important;
    color: #ffffff !important;
}
body[data-theme="youth"] #studentProfileHeroCard #selectedCardName,
body[data-theme="youth"] #studentProfileHeroCard #selectedCardDesc {
    color: #ffffff !important;
}
body[data-theme="youth"] #sidebarCycleRound {
    background: #70889c !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}
body[data-theme="youth"] #selectedCardExamDDay button,
body[data-theme="youth"] #selectedCardExamDDay span {
    background: #992929 !important;
    color: #ffffff !important;
    border-color: #fca5a5 !important;
}
body[data-theme="youth"] #themeMiniDDayCard {
    background: linear-gradient(135deg, #fde68a 0%, #f5b851 100%) !important;
    border: 2px solid #78350f !important;
}
body[data-theme="youth"] #themeMiniDDayCard #themeMiniDDayTitle {
    color: #581c0c !important;
}
body[data-theme="youth"] #themeMiniDDayCard #themeMiniDDaySub {
    color: #78350f !important;
}
body[data-theme="youth"] #btnThemeKakaoMain,
body[data-theme="youth"] .btn-kakao-point {
    background: #e4bc6e !important;
    color: #1f1a0e !important;
    border: 2px solid #5a4926 !important;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.48), 0 3px 0 #5a4926 !important;
}
body[data-theme="youth"] #btnCopyParentPortalMain {
    background: #536859 !important;
    color: #ffffff !important;
    border: 2px solid #2e3c32 !important;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), 0 3px 0 #2e3c32 !important;
}
body[data-theme="youth"] #btnGraduatedMain {
    background: #485d4f !important;
    color: #ffffff !important;
    border: 2px solid #29372d !important;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), 0 3px 0 #29372d !important;
}
body[data-theme="youth"] .ct-side-note-card {
    background: #fcfbf7 !important;
    border: 2px solid #3c5163 !important;
    box-shadow: 4px 5px 0 rgba(36, 54, 72, 0.18) !important;
}
body[data-theme="youth"] .ct-theme-switcher-pill .ct-theme-btn.active-theme {
    background: #243648 !important;
    color: #ffffff !important;
}

/* =========================================================================
   📗 [테마 4: 엑셀 (Excel)] - 고밀도 오피스 스프레드시트 격자 스타일
   ========================================================================= */
body[data-theme="excel"] {
    background-color: #e6e6e6 !important;
    color: #111827 !important;
    font-family: 'Malgun Gothic', 'Pretendard', monospace, sans-serif !important;
}
body[data-theme="excel"] #masterModeBar {
    background: #0d5c30 !important;
    border-bottom: 1px solid #094222 !important;
}
body[data-theme="excel"] header {
    background: #107c41 !important;
    color: #ffffff !important;
    border-bottom: 1px solid #0a522a !important;
}
body[data-theme="excel"] header #mainHeaderTitle,
body[data-theme="excel"] header #mobileHeaderTitle {
    color: #ffffff !important;
}
body[data-theme="excel"] aside#teacherSidebar {
    background: #f3f2f1 !important;
    border-right: 1px solid #c8c6c4 !important;
}
body[data-theme="excel"] #teacherModeWrapper,
body[data-theme="excel"] #parentModeWrapper,
body[data-theme="excel"] #agencyModeWrapper,
body[data-theme="excel"] #masterModeWrapper {
    background-color: #ffffff !important;
    background-image:
        linear-gradient(to right, #e1dfdd 1px, transparent 1px),
        linear-gradient(to bottom, #e1dfdd 1px, transparent 1px) !important;
    background-size: 120px 32px !important;
}
body[data-theme="excel"] .ct-card-surface,
body[data-theme="excel"] .ct-tone-box,
body[data-theme="excel"] .ct-side-note-card {
    background: #ffffff !important;
    border: 1px solid #8a8886 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}
body[data-theme="excel"] button:not(.ct-theme-btn),
body[data-theme="excel"] select,
body[data-theme="excel"] input,
body[data-theme="excel"] textarea {
    border-radius: 2px !important;
}
body[data-theme="excel"] #studentSelect {
    background-color: #ffffff !important;
    border: 2px solid #107c41 !important;
    color: #111827 !important;
    font-weight: 800 !important;
}
body[data-theme="excel"] #studentProfileHeroCard {
    background: #f3f9f5 !important;
    border: 1px solid #107c41 !important;
    border-left: 5px solid #107c41 !important;
    border-radius: 2px !important;
}
body[data-theme="excel"] #sidebarCycleRound {
    background: #107c41 !important;
    color: #ffffff !important;
}
body[data-theme="excel"] .ct-theme-switcher-pill .ct-theme-btn.active-theme {
    background: #107c41 !important;
    color: #ffffff !important;
}

/* 📱 모바일 · 태블릿(Pad) · PC 반응형 최적화 */
@media (max-width: 640px) {
    .ct-theme-switcher-pill .ct-theme-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    .ct-washi-tape {
        width: 92px;
        height: 20px;
        margin: -18px auto 2px auto;
    }
}

/* =========================================================================
   🧭 좌측 네비게이션 사이드바 (펼침 248px ↔ 접힘 76px 전환 & 모바일 드로어)
   ========================================================================= */
aside#teacherSidebar.ct-sidebar {
    width: 248px;
    transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1), padding 0.22s ease;
}
.sidebar-collapse-only {
    display: none !important;
}
.sidebar-collapse-tooltip {
    display: none;
}

.ct-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    color: #334155;
    background: transparent;
    transition: all 0.16s ease;
    position: relative;
    cursor: pointer;
    text-align: left;
}
.ct-nav-item:hover {
    background-color: #eceae4;
    color: #19212c;
}
.ct-nav-item.active {
    background-color: #19212c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(25, 33, 44, 0.16);
}

/* 사이드바 하단 테마 버튼 활성화 표시 */
.ct-theme-btn.active-theme {
    background: #19212c !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

/* 접힘(76px) 상태 스타일 */
@media (min-width: 768px) {
    aside#teacherSidebar.ct-sidebar.is-collapsed {
        width: 76px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        align-items: center;
    }
    aside#teacherSidebar.ct-sidebar.is-collapsed .sidebar-expand-only {
        display: none !important;
    }
    aside#teacherSidebar.ct-sidebar.is-collapsed .sidebar-collapse-only {
        display: block !important;
    }
    aside#teacherSidebar.ct-sidebar.is-collapsed .ct-sidebar-brand {
        justify-content: center;
        width: 100%;
    }
    aside#teacherSidebar.ct-sidebar.is-collapsed .ct-nav-item {
        justify-content: center !important;
        padding: 0 !important;
        width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        margin-left: auto;
        margin-right: auto;
        border-radius: 14px;
    }
}

/* 모바일(<768px) 슬라이드 오버 드로어 오픈 상태 */
@media (max-width: 767px) {
    aside#teacherSidebar.ct-sidebar.mobile-drawer-open {
        display: flex !important;
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px !important;
        z-index: 8500 !important;
        box-shadow: 18px 0 44px rgba(15, 23, 42, 0.32) !important;
        animation: fadeInUp 0.18s ease forwards;
    }
}

/* 💰 고전환 포인트 충전 통합 CTA 버튼 */
.ct-point-cta-btn {
    background: linear-gradient(135deg, #19212c 0%, #283548 55%, #1e293b 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(250, 204, 21, 0.55) !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}
.ct-point-cta-btn:hover {
    transform: translateY(-1px);
    border-color: #facc15 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.26);
}


