@charset "utf-8";

/* ========================================================
   1. 기본 레이아웃 & 공통 리셋
   ======================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #1b1b22;
    color: #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

.display-hidden { display: none !important; }

/* 기본 스크롤바 (다크 모드 기준) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #121216; }
::-webkit-scrollbar-thumb { background: #2d2d38; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444455; }
* { scrollbar-width: thin; scrollbar-color: #2d2d38 #121216; }

/* 상단 헤더 */
#vip-header {
    height: 50px;
    background: #111116;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    flex-shrink: 0;
}
.brand-wrap { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 15px; }
.brand-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.icon-btn { background: none; border: none; color: #bbb; font-size: 16px; cursor: pointer; padding: 5px 8px; border-radius: 4px; }
.icon-btn:hover { background: #2a2a35; color: #fff; }

/* 헤더 테마 토글 버튼 */
.theme-toggle-btn {
    background: #252530;
    border: 1px solid #3c3c4a;
    color: #ffd54f;
    height: 20px;
    width: 26px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
    background: #363646;
    border-color: #ffd54f;
}

/* 사이드 서랍 메뉴 (드로어) */
#side-drawer {
    position: fixed;
    top: 0;
    left: -270px;
    width: 270px;
    height: 100%;
    background: #22222b;
    z-index: 3000;
    transition: left 0.25s ease;
    box-shadow: 2px 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}
#side-drawer.open { left: 0; }
.drawer-header { padding: 15px; border-bottom: 1px solid #333; display: flex; align-items: center; justify-content: space-between; }
.drawer-user { display: flex; align-items: center; gap: 10px; }
.drawer-user img { width: 40px; height: 40px; border-radius: 50%; }
.drawer-body { padding: 10px 5px; flex: 1; overflow-y: auto; }
.drawer-group { font-size: 11px; color: #888; padding: 10px 10px 4px 10px; font-weight: 600; }
.drawer-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #ccc;
    padding: 11px 12px;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
}
.drawer-btn:hover { background: #2f2f3d; color: #fff; }
.drawer-btn.active { background: #373747; color: #ff9800; font-weight: 600; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2999; }

/* 메인 대시보드 4분할 컨테이너 */
#dash-grid-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px);
    overflow: hidden;
}
.dash-col {
    background: #24242e;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}
.dash-col-head {
    background: #1b1b22;
    padding: 8px 10px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}
.dash-col-tools { display: flex; align-items: center; gap: 5px; }
.dash-col-body { flex: 1; overflow: hidden; position: relative; }
.dash-col-body iframe { width: 100%; height: 100%; border: none; }

/* 컨트롤 요소 */
.ctrl-select, .ctrl-input {
    background: #16161c;
    border: 1px solid #444;
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 3px;
}
.ctrl-input { width: 90px; }

/* ========================================================
   2. 기본 Tabulator 다크 스타일 및 컴포넌트
   ======================================================== */
.tabulator { background-color: #121216 !important; border: none !important; }
.tabulator .tabulator-header { background-color: #0d0d11 !important; border-bottom: 1px solid #292933 !important; color: #9999a5 !important; font-size: 12px; }
.tabulator .tabulator-col-resize-handle { display: none !important; pointer-events: none !important; width: 0 !important; }
.tabulator .tabulator-header .tabulator-col { cursor: default !important; }

.tabulator .tabulator-row, .tabulator .tabulator-row.tabulator-row-even, .tabulator .tabulator-row.tabulator-row-odd {
    background-color: #18181f !important;
    border-bottom: 1px solid #23232c !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
    height: auto !important;
}
.tabulator .tabulator-row:hover { background-color: #22222d !important; }
.tabulator .tabulator-row.row-wait-blue {
    background-color: #122238 !important;
    border-bottom: 1px solid #1d334f !important;
}
.tabulator .tabulator-row.row-wait-blue:hover {
    background-color: #1a2f4d !important;
}
.tabulator .tabulator-cell { white-space: normal !important; word-break: break-all !important; height: auto !important; padding: 6px 4px !important; }

/* 하단 페이징 바 */
.tabulator .tabulator-footer {
    background-color: #14141a !important;
    border-top: 1px solid #292933 !important;
    color: #9e9ea7 !important;
    padding: 6px 10px !important;
}
.tabulator .tabulator-footer .tabulator-paginator { color: #9e9ea7 !important; font-size: 11px !important; }
.tabulator .tabulator-footer .tabulator-page {
    background-color: #1e1e26 !important;
    border: 1px solid #333342 !important;
    color: #bbb !important;
    font-size: 11px !important;
    padding: 3px 8px !important;
    margin: 0 2px !important;
    border-radius: 3px !important;
    transition: all 0.15s ease;
}
.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover {
    background-color: #2e2e3d !important;
    color: #fff !important;
    border-color: #ff9800 !important;
}
.tabulator .tabulator-footer .tabulator-page.active {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: #fff !important;
    font-weight: bold !important;
}
.tabulator .tabulator-footer .tabulator-page.disabled { opacity: 0.3 !important; cursor: default !important; }
.tabulator .tabulator-footer .tabulator-page-counter { color: #757585 !important; font-size: 11px !important; margin-right: 8px !important; }

/* 로딩 GIF 래퍼 */
.tabulator .tabulator-loader {
    background-color: rgba(18, 18, 22, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
}
.tabulator .tabulator-loader .tabulator-loader-msg {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #cfd8dc !important;
    padding: 0 !important;
}
.custom-grid-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.custom-grid-loader img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    display: block;
}
.custom-grid-loader span {
    font-size: 11px;
    color: #90a4ae;
    font-weight: 500;
}

/* ========================================================
   3. 카드 피드 & 뱃지 (다크 모드 기본)
   ======================================================== */
.feed-box { padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; line-height: 1.4; width: 100%; box-sizing: border-box; }
.feed-header { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; width: 100%; }
.feed-title { color: #f0f0f5; font-size: 13px; font-weight: 600; line-height: 1.45; word-break: break-all; }
.feed-title-link { color: #64b5f6 !important; }
.feed-sub { color: #9e9ea7; font-size: 11px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.text-muted-wait { color: #9e9ea7 !important; }

.item-deleted .feed-title { color: #ff5252 !important; }
.item-pending { color: #787885 !important; }
.item-pending .feed-title { color: #8e8e9c !important; }

.badge {
    height: 20px;
    font-size: 11px;
    line-height: 20px;
    padding: 0 6px;
    border-radius: 3px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: -0.2px;
}
.badge-bold { font-weight: 700 !important; }
.badge-done { background: #2e7d32; color: #fff; }
.badge-wait { background: #d84315; color: #fff; }
.badge-new-pill {
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.badge-quarter { background-color: #37474f !important; color: #cfd8dc !important; }
.badge-prod { background: #252b36; color: #90caf9; border: 1px solid #37474f; }
.badge-watch-end { background-color: #ef6c00 !important; color: #fff !important; }
.badge-maker {
    background-color: #004d40 !important;
    color: #80dfc8 !important;
    border: 1px solid #00695c;
}
.badge-maker i { font-size: 9px !important; margin-right: 3px; opacity: 0.85; }
.badge-nosub { background-color: #2c3437 !important; color: #90a4ae !important; }
.badge-status-btn { cursor: pointer !important; }

/* 카테고리 뱃지 */
.badge-type-01 { background-color: #1565c0 !important; color:#fff; }
.badge-type-05 { background-color: #6a1b9a !important; color:#fff; }
.badge-type-02 { background-color: #2e7d32 !important; color:#fff; }
.badge-type-03 { background-color: #c62828 !important; color:#fff; }
.badge-type-04 { background-color: #e65100 !important; color:#fff; }
.badge-type-etc { background-color: #455a64 !important; color:#fff; }

.feed-nums-tag { color: #cfd8dc; font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.feed-nums-tag i { color: #78909c; font-size: 10px; }
.feed-eng-title {
    color: #90a4ae;
    font-size: 11px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.feed-genre-tag { color: #90caf9; font-size: 11px; }

/* 액션 버튼 */
.btn-icon-edit {
    margin-left: auto !important;
    background: #252530;
    color: #9e9ea7;
    border: 1px solid #3c3c4a;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.btn-icon-edit:hover { background: #363646; color: #ff9800; border-color: #ff9800; }
.btn-header-add {
    background: #ff9800;
    color: #fff;
    border: none;
    height: 20px;
    font-size: 11px;
    line-height: 20px;
    padding: 0 8px;
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn-header-add:hover { background: #f57c00; }
.btn-header-add:active { transform: scale(0.95); }

.btn-pill {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
}
.btn-pill-site { background: #1a237e; border: 1px solid #303f9f; }
.btn-pill-site:hover { background: #283593; }
.btn-pill-blog { background: #004d40; border: 1px solid #00796b; }
.btn-pill-blog:hover { background: #00695c; }

/* 모달 레이아웃 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); z-index: 4000; display: flex; align-items: center; justify-content: center; }
.modal-box { background: #24242e; border: 1px solid #444455; border-radius: 8px; width: 92%; max-width: 420px; box-shadow: 0 4px 25px rgba(0,0,0,0.6); overflow: hidden; }
.modal-box.max-width-520 { max-width: 520px; width: 95%; background: #1e1e26; border: 1px solid #3b3b4a; }
.modal-header { background: #15151c; padding: 12px 18px; border-bottom: 1px solid #2d2d3a; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: #fff; }
.modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.modal-body-form { padding: 16px 20px; max-height: 75vh; overflow-y: auto; }
.form-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-full-col { grid-column: span 2; }
.form-item, .form-group { display: flex; flex-direction: column; gap: 5px; }
.form-item label, .form-group label { font-size: 11px; color: #9e9ea7; font-weight: 500; }
.form-item input, .form-item select, .form-group input, .form-group select {
    background: #14141a !important;
    border: 1px solid #383846 !important;
    color: #fff !important;
    font-size: 12px;
    padding: 7px 9px;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    width: 100%;
}
.form-item input:focus, .form-item select:focus, .form-group input:focus, .form-group select:focus { border-color: #ff9800 !important; }
.modal-footer { padding: 12px 18px; background: #15151c; border-top: 1px solid #2d2d3a; display: flex; justify-content: flex-end; gap: 8px; }

/* ========================================================
   4. 라이트 모드 (Light Mode) 최우선 오버라이딩 (가독성 완전 보완)
   ======================================================== */
body.light-mode {
    background: #eef1f5 !important;
    color: #1e293b !important;
}

/* 1) 스크롤바 */
body.light-mode ::-webkit-scrollbar-track { background: #f1f5f9 !important; }
body.light-mode ::-webkit-scrollbar-thumb { background: #cbd5e1 !important; border-radius: 3px !important; }
body.light-mode ::-webkit-scrollbar-thumb:hover { background: #94a3b8 !important; }
body.light-mode * { scrollbar-color: #cbd5e1 #f1f5f9 !important; }

/* 2) 메인 헤더 */
body.light-mode #vip-header {
    background: #ffffff !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
body.light-mode #vip-header .brand-wrap span { color: #0f172a !important; font-weight: 700; }
body.light-mode .icon-btn { color: #334155 !important; }
body.light-mode .icon-btn:hover { background: #f1f5f9 !important; color: #0f172a !important; }
body.light-mode .theme-toggle-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important; /* 부드러운 소프트 그레이 테두리 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}

body.light-mode .theme-toggle-btn:hover {
    background: #f1f5f9 !important;
    border-color: #f59e0b !important; /* 호버 시 따뜻한 오렌지/옐로우 강조 */
}

body.light-mode #icon-theme.fa-sun {
    color: #d97706 !important;
}

body.light-mode #badge-admin {
    background: #6d28d9 !important; /* 선명하고 고급스러운 바이올렛 */
    color: #ffffff !important;      /* ★ 흰색 텍스트로 또렷하게 표시 */
    border: 1px solid #5b21b6 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode #badge-admin i {
    color: #ffffff !important;      /* ★ 방패 아이콘도 완전한 흰색 */
    opacity: 0.95 !important;
}

/* 3) 자료 등록 (+) 버튼 규격 및 테두리 정돈 */
body.light-mode .btn-header-add {
    background: #ff9800 !important;
    color: #ffffff !important;
    border: 1px solid #f57c00 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .btn-header-add:hover {
    background: #f57c00 !important;
}

/* 4) 새로고침 버튼 아이콘 색상 */
body.light-mode #btn-reload-all {
    color: #475569 !important;
}
body.light-mode #btn-reload-all:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* 3) 컬럼 프레임 및 헤더 */
body.light-mode .dash-col {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
body.light-mode .dash-col-head {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* 4) 입력 컨트롤 */
body.light-mode .ctrl-select, 
body.light-mode .ctrl-input {
    background: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    color: #0f172a !important;
    font-weight: 500;
}
body.light-mode .ctrl-select:focus,
body.light-mode .ctrl-input:focus {
    border-color: #ff9800 !important;
}

/* 5) Tabulator 테이블 프레임 & 헤더 */
body.light-mode .tabulator {
    background-color: #ffffff !important;
}
body.light-mode .tabulator .tabulator-tableholder {
    background-color: #ffffff !important;
}
body.light-mode .tabulator .tabulator-header {
    background-color: #e2e8f0 !important;
    border-bottom: 2px solid #cbd5e1 !important;
}
body.light-mode .tabulator .tabulator-header .tabulator-col {
    background-color: #e2e8f0 !important;
}
body.light-mode .tabulator .tabulator-header .tabulator-col-content {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* 6) Tabulator 그리드 행 */
body.light-mode .tabulator .tabulator-row,
body.light-mode .tabulator .tabulator-row.tabulator-row-even,
body.light-mode .tabulator .tabulator-row.tabulator-row-odd {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
body.light-mode .tabulator .tabulator-row:hover {
    background-color: #f8fafc !important;
}
body.light-mode .tabulator .tabulator-row.row-wait-blue {
    background-color: #eff6ff !important;
    border-bottom: 1px solid #dbeafe !important;
}
body.light-mode .tabulator .tabulator-row.row-wait-blue:hover {
    background-color: #dbeafe !important;
}

/* 7) 텍스트 명도 대비 보완 */
body.light-mode .feed-title {
    color: #0f172a !important;
    font-weight: 600 !important;
}
body.light-mode .feed-title-link {
    color: #1d4ed8 !important;
}
body.light-mode .text-muted-wait {
    color: #64748b !important;
}
body.light-mode .feed-sub {
    color: #475569 !important;
}
body.light-mode .feed-nums-tag {
    color: #1e293b !important;
    font-weight: 600 !important;
}
body.light-mode .feed-nums-tag i {
    color: #64748b !important;
}
body.light-mode .feed-genre-tag {
    color: #1d4ed8 !important;
    font-weight: 600 !important;
}

/* 8) 뱃지 & 툴팁 가독성 보완 (배경 및 글자색 명확화) */
body.light-mode .badge-maker {
    background-color: #dcfce7 !important; /* 선명하고 밝은 그린 */
    color: #14532d !important;            /* 짙은 초록색 폰트 */
    border: 1px solid #86efac !important;
    font-weight: 600 !important;
}
body.light-mode .badge-maker i {
    color: #15803d !important;
    opacity: 1 !important;
}
body.light-mode .badge-prod {
    background-color: #e2e8f0 !important; /* 슬레이트 그레이 */
    color: #0f172a !important;            /* 짙은 네이비/블랙 */
    border: 1px solid #94a3b8 !important;
    font-weight: 600 !important;
}
body.light-mode .badge-quarter {
    background-color: #e2e8f0 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
body.light-mode .badge-nosub {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
}
body.light-mode .feed-eng-title {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border: 1px solid #94a3b8 !important;
    font-weight: 600 !important;
    font-style: normal !important;
}
body.light-mode .btn-icon-edit {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.light-mode .btn-icon-edit:hover {
    background: #e2e8f0 !important;
    color: #ff9800 !important;
    border-color: #ff9800 !important;
}

/* 9) 하단 페이징 바 */
body.light-mode .tabulator .tabulator-footer {
    background-color: #f8fafc !important;
    border-top: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}
body.light-mode .tabulator .tabulator-footer .tabulator-paginator {
    color: #475569 !important;
}
body.light-mode .tabulator .tabulator-footer .tabulator-page {
    background-color: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    color: #1e293b !important;
    font-weight: 600 !important;
}
body.light-mode .tabulator .tabulator-footer .tabulator-page:not(.disabled):hover {
    background-color: #f1f5f9 !important;
    color: #ff9800 !important;
    border-color: #ff9800 !important;
}
body.light-mode .tabulator .tabulator-footer .tabulator-page.active {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: #ffffff !important;
}
body.light-mode .tabulator .tabulator-footer .tabulator-page-counter {
    color: #475569 !important;
}

/* 10) 드로어 메뉴 & 편성표 */
body.light-mode #side-drawer {
    background: #ffffff !important;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}
body.light-mode .drawer-header {
    border-bottom: 1px solid #e2e8f0 !important;
}
body.light-mode .drawer-user div div:first-child {
    color: #0f172a !important;
}
body.light-mode .drawer-group {
    color: #64748b !important;
}
body.light-mode .drawer-btn {
    color: #334155 !important;
}
body.light-mode .drawer-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
body.light-mode .drawer-btn.active {
    background: #fef3c7 !important;
    color: #d97706 !important;
}
body.light-mode #col-schedule iframe {
    filter: invert(0.9) hue-rotate(180deg);
}

/* ========================================================
   5. 모바일 반응형
   ======================================================== */
@media (max-width: 1100px) {
    #dash-grid-container { grid-template-columns: repeat(2, 1fr); overflow-y: auto; }
}

@media (max-width: 768px) {
    #dash-grid-container {
        display: block !important;
        padding: 5px !important;
        height: calc(100vh - 50px) !important;
        height: calc(100dvh - 50px) !important;
        overflow: hidden !important;
    }
    .dash-col {
        display: none !important;
        height: 100% !important;
    }
    .dash-col.active-m {
        display: flex !important;
    }
    .ctrl-input { width: 75px; }
}

/* ========================================================
   중앙 하단 플로팅 토스트(Toast) 알림
   ======================================================== */
#dash-toast {
    visibility: hidden;
    min-width: 240px;
    background-color: rgba(20, 20, 26, 0.95);
    color: #4caf50; /* 성공을 나타내는 부드러운 그린 */
    text-align: center;
    border-radius: 25px;
    padding: 10px 22px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(76, 175, 80, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#dash-toast i {
    font-size: 14px;
}

/* 활성화 시 위로 부드럽게 올라오면서 노출 */
#dash-toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 라이트 모드 대응 토스트 스타일 */
body.light-mode #dash-toast {
    background-color: rgba(255, 255, 255, 0.96);
    color: #16a34a;
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}