  <style>
        /* === 로딩 화면 === */
        #init-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #f3f4f6; z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.4s ease-out; }
        .spinner { width: 50px; height: 50px; border: 5px solid #e5e7eb; border-top: 5px solid #4f46e5; border-radius: 50%; animation: spin 1s linear infinite; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        /* 메인 컨텐츠 래퍼 */
        #app-wrapper { opacity: 0; transition: opacity 0.5s ease-in-out; height: 100%; display: flex; flex-direction: column; }

        /* === 기본 스타일 === */
        body { font-family: 'Noto Sans KR', sans-serif; background-color: #f3f4f6; overflow: hidden; margin: 0; }
        .card-hover { transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s; cursor: grab; }
        .card-hover:active { cursor: grabbing; }
        .card-hover:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1); }
        
        /* 모달 */
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; }
        .modal-overlay.active { display: flex; opacity: 1; }
        .modal-box { background: white; border-radius: 20px; padding: 28px; width: 90%; max-width: 480px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); transform: scale(0.95); transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
        .modal-overlay.active .modal-box { transform: scale(1); }

        /* 사이드바 */
        .sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
        .sidebar-overlay.active { opacity: 1; visibility: visible; }
        .sidebar { position: fixed; top: 0; right: -300px; width: 300px; height: 100%; background: white; z-index: 999; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
        .sidebar.active { right: 0; }

        /* 캘린더 */
        .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: #e5e7eb; border: 1px solid #e5e7eb; }
        .cal-cell { background: white; min-height: 90px; padding: 4px; font-size: 12px; cursor: pointer; position: relative; transition: background 0.2s; }
        .cal-cell:hover { background: #f9fafb; }
        .cal-badge { display: block; padding: 2px 6px; border-radius: 4px; color: white; font-size: 10px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
        .tag-vacation { background-color: #ef4444; } .tag-half { background-color: #f97316; } .tag-duty2 { background-color: #3b82f6; } .tag-duty5 { background-color: #1d4ed8; } .tag-duty-off { background-color: #64748b; } .tag-event { background-color: #10b981; }
        .holiday-name { font-size: 10px; color: #ef4444; font-weight: bold; margin-left: 4px; }

        /* 화면 전환 효과 */
        .view-section { height: calc(100vh - 64px); overflow-y: auto; width: 100%; position: absolute; top: 64px; left: 0; background-color: #f3f4f6; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease; }
        .view-dashboard { z-index: 10; transform: translateY(0); opacity: 1; }
        .view-dashboard.out { transform: scale(0.95); opacity: 0; pointer-events: none; }
        .view-frame { z-index: 20; transform: translateY(100%); opacity: 0; background: white; }
        .view-frame.in { transform: translateY(0); opacity: 1; }
        
        /* 게시판 스타일 */
        .board-tab { cursor: pointer; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all 0.2s; color: #6b7280; background: white; border: 1px solid #e5e7eb; }
        .board-tab.active { background-color: #4f46e5; color: white; border-color: #4f46e5; box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2); }
        .board-table th { font-weight: 600; color: #4b5563; padding: 16px; text-align: left; font-size: 13px; border-bottom: 2px solid #e5e7eb; background: #f9fafb; }
        .board-table td { padding: 16px; border-bottom: 1px solid #f3f4f6; font-size: 14px; color: #374151; vertical-align: middle; }
        .board-row:hover td { background-color: #f8fafc; cursor: pointer; color: #4f46e5; }
        
        /* 에디터 컨텐츠 뷰어 스타일 */
        .ql-content-view h1 { font-size: 2em; font-weight: bold; margin-bottom: 0.5em; }
        .ql-content-view h2 { font-size: 1.5em; font-weight: bold; margin-bottom: 0.5em; }
        .ql-content-view ul { list-style-type: disc; padding-left: 1.5em; margin-bottom: 1em; }
        .ql-content-view ol { list-style-type: decimal; padding-left: 1.5em; margin-bottom: 1em; }
        .ql-content-view p { margin-bottom: 0.8em; line-height: 1.6; }
        .ql-content-view strong { font-weight: bold; }
        .ql-content-view em { font-style: italic; }
        .ql-content-view u { text-decoration: underline; }
        .ql-content-view blockquote { border-left: 4px solid #ccc; margin-bottom: 5px; margin-top: 5px; padding-left: 16px; color: #555; }
        
        /* Quill 에디터 커스텀 */
        .ql-toolbar { border-radius: 12px 12px 0 0; border-color: #e5e7eb !important; background-color: #f9fafb; }
        .ql-container { border-radius: 0 0 12px 12px; border-color: #e5e7eb !important; height: 400px; font-family: 'Noto Sans KR', sans-serif; font-size: 16px; }

        #frame-content { width: 100%; height: 100%; border: none; }
        .custom-scroll::-webkit-scrollbar { width: 4px; }
        .custom-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
        .sortable-ghost { opacity: 0.4; background-color: #e0e7ff; }

/* =========================================
   [NEW] 스마트 알림 UI (애니메이션 + 팝업)
   ========================================= */

/* 1. 딸랑딸랑 종소리 애니메이션 */
@keyframes bell-ring {
    0% { transform: rotate(0); }
    15% { transform: rotate(25deg); }
    30% { transform: rotate(-20deg); }
    45% { transform: rotate(15deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0); }
}

.ring-animation {
    animation: bell-ring 0.6s ease-in-out;
}

/* 2. 토스트 팝업 (상단 중앙 + 인디고 테마) */
#toast-container {
    position: fixed;
    top: 24px; /* 화면 상단에서 24px 아래 */
    left: 50%;
    transform: translateX(-50%) translateY(-100px); /* 평소엔 위쪽 화면 밖에 숨김 */
    
    /* 디자인: 인디고 배경 + 흰색 글씨 */
    background-color: rgba(79, 70, 229, 0.95);
    color: #ffffff;
    
    /* 모양 및 그림자 */
    padding: 14px 28px;
    border-radius: 9999px; /* 알약 모양 */
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(67, 56, 202, 0.4); /* 부드러운 인디고 그림자 */
    
    /* 동작 설정 */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* 쫀득한 등장 효과 */
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

/* 팝업 등장 상태 */
#toast-container.show {
    transform: translateX(-50%) translateY(0); /* 제자리로 내려옴 */
    opacity: 1;
}

/* 팝업 내부 아이콘 크기 */
#toast-container i {
    font-size: 1.2em;
}

/* 3. 유틸리티 색상 (Tailwind 없을 경우 대비) */
.text-yellow-500 { color: #F59E0B !important; }
.text-green-300 { color: #86efac !important; }
.text-red-300 { color: #fca5a5 !important; }
.text-gray-300 { color: #d1d5db !important; }


    </style>
