
        /* 1. 모든 요소의 크기 계산에 테두리와 패딩을 포함시킴 (가장 중요) */
        * {
            box-sizing: border-box;
        }

        /* 2. body와 html의 여백 제거 */
        html,
        body {
            margin: 0;
            padding: 0;
            /* height: 100%; 삭제 혹은 min-height: 100vh; 로 변경 */
            min-height: 100vh;
            overflow-x: clip;
            /* hidden 대신 clip을 사용하면 가로 스크롤은 막으면서 sticky는 고장나지 않습니다. */
        }

        #weeklyLimitCard {
            display: none;
            position: sticky;
            /* 화면 상단에 닿았을 때 고정될 위치 설정 */
            /* 현재 앱은 상단에 .top-bar가 있으므로 상단바 밑에 고정되도록 오프셋을 줘야 합니다. */
            top: 0px;
            /* 상단 바 높이에 맞게 60px ~ 80px 사이에서 알맞게 조정해 보세요. */
            z-index: 90;
            /* 겹칠 때 카드가 리스트 위로 올라오도록 설정 */
        }

        /* 3. 컨테이너 스타일 최적화 */
        .container {
            max-width: 600px;
            margin: 0 auto;
            background-color: #f8f9fa;
            /* 배경색 */
            min-height: 100dvh;
            /* 최소 높이를 화면 전체로 */

            /* 상단 패딩 제거 (상단 바가 있으므로) */
            padding-top: 0;

            /* 하단 패딩 조정: 플로팅 버튼(약 60px)에 가려지지 않을 정도로만 설정 */
            padding-bottom: 80px;

            position: relative;
        }

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

        :root {
            --base-font-size: 16px;
            --heading-font-size: 26px;
            --button-font-size: 17px;
            --label-font-size: 15px;
            --small-font-size: 13px;
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
            --success-gradient: linear-gradient(135deg, #68d391 0%, #38a169 100%);
            --danger-gradient: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
            --admin-gradient: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
            --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
            --card-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
            --border-radius-lg: 24px;
            --border-radius-md: 16px;
            --border-radius-sm: 12px;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(145deg, #667eea 0%, #764ba2 50%, #667eea 100%);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            min-height: 100dvh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 0;
            color: #1a202c;
        }

        @keyframes gradientShift {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }


        .container {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: none;
            padding: 0px;
            border-radius: 0;
            box-shadow: none;
            width: 100%;
            max-width: 100%;
            min-height: 100dvh;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 16px 20px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
            z-index: 100;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        }

        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .app-title {
            font-size: 20px;
            font-weight: 800;
            background: #667eea;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            white-space: nowrap;
            letter-spacing: -0.5px;
        }

        .user-name-display {
            font-size: 14px;
            font-weight: 700;
            color: #667eea;
            background: rgba(102, 126, 234, 0.1);
            padding: 8px 16px;
            border-radius: 20px;
            display: none;
            transition: all 0.3s ease;
        }

        .user-name-display:hover {
            background: rgba(102, 126, 234, 0.15);
            transform: scale(1.05);
        }

        h1 {
            text-align: center;
            color: #1a202c;
            margin: 0;
            padding: 48px 20px 24px;
            font-size: 28px;
            /* font-weight: revert-layer; */
            line-height: 1.4;
            position: relative;
            z-index: 2;
            background: #667eea;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.5px;
        }

        .login-page,
        .main-page,
        .admin-page {
            padding: 18px 20px;
            position: relative;
            z-index: 2;
            margin-top: -16px;
            margin-bottom: -10px;
            flex-shrink: 0;
        }

        .login-page {
            display: block;
        }

        .main-page,
        .admin-page {
            display: none;
        }

        .form-group {
            margin-bottom: 28px;
        }

        label {
            display: block;
            margin-bottom: 12px;
            color: #2d3748;
            font-weight: 700;
            font-size: var(--label-font-size);
            text-align: left;
            letter-spacing: -0.2px;
        }

        input[type="text"],
        select,
        textarea,
        input[type="number"] {
            width: 70%;
            padding: 10px 20px;
            border: 2px solid rgba(102, 126, 234, 0.15);
            border-radius: var(--border-radius-md);
            font-size: var(--base-font-size);
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            /* box-shadow: 0 4px 12px rgba(0,0,0,0.03); */
            font-family: inherit;
        }

        input[type="text"]:focus,
        select:focus,
        textarea:focus,
        input[type="number"]:focus {
            outline: none;
            background: white;
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 12px 40px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }

        .btn {
            width: 100%;
            padding: 22px 28px;
            background: linear-gradient(135deg, rgb(102 126 234 / 95%) 0%, rgb(118 75 162 / 94%) 100%);
            color: white;
            border: none;
            border-radius: var(--border-radius-md);
            font-size: var(--button-font-size);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin-bottom: 16px;
            box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
            position: relative;
            overflow: hidden;
            letter-spacing: -0.3px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
            overflow: hidden;
            letter-spacing: -0.3px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.6s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
        }

        .btn:active {
            transform: translateY(-1px) scale(0.98);
        }

        .btn.secondary {
            background: linear-gradient(135deg, rgb(160 174 192 / 95%) 0%, rgb(113 128 150 / 95%) 100%);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
        }

        .btn.secondary:hover {
            box-shadow: 0 12px 40px rgba(160, 174, 192, 0.4);
        }

        .btn.danger {
            background: var(--danger-gradient);
            padding: 16px 24px;
            width: auto;
            font-size: 14px;
            margin: 0;
            box-shadow: 0 6px 20px rgba(252, 129, 129, 0.3);
            border-radius: var(--border-radius-sm);
        }

        .btn.danger:hover {
            box-shadow: 0 10px 30px rgba(252, 129, 129, 0.4);
        }

        .btn.success {
            background: var(--success-gradient);
            padding: 18px 28px;
            width: auto;
            font-size: 15px;
            margin: 0 5px;
            box-shadow: 0 6px 20px rgba(104, 211, 145, 0.3);
            border-radius: var(--border-radius-sm);
        }

        .btn.success:hover {
            box-shadow: 0 10px 30px rgba(104, 211, 145, 0.4);
        }

        .btn.admin {
            background: var(--admin-gradient);
            box-shadow: 0 8px 30px rgba(246, 173, 85, 0.3);
        }

        .btn.admin:hover {
            box-shadow: 0 12px 40px rgba(246, 173, 85, 0.4);
        }

        .btn.small {
            padding: 18px 26px;
            font-size: var(--label-font-size);
            width: auto;
        }

        .btn:disabled {
            background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            opacity: 0.6;
        }

        .user-info,
        .admin-info {
            text-align: center;
            margin: 20px 0 32px;
            font-size: 18px;
            font-weight: 600;
            padding: 20px;
            border-radius: 16px;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
        }

        .user-info {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
            color: #667eea;
        }

        .admin-info {
            background: linear-gradient(135deg, rgba(246, 173, 85, 0.1) 0%, rgba(237, 137, 54, 0.1) 100%);
            color: #ed8936;
        }

        .action-buttons {
            display: flex;
            flex-direction: row;
            gap: 16px;
            margin-bottom: 28px;
        }

        .admin-actions {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 36px;
        }

        .day-selection {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 16px;
        }

        @media (max-width: 480px) {
            .day-selection {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
        }

        .zone-selection {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin-top: 16px;
        }

        .day-option,
        .zone-option {
            position: relative;
        }

        .day-option input[type="radio"],
        .zone-option input[type="radio"] {
            display: none;
        }

        .day-label,
        .zone-label {
            display: block;
            padding: 20px 16px;
            border: 2px solid rgba(102, 126, 234, 0.15);
            border-radius: var(--border-radius-md);
            text-align: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            font-weight: 700;
            font-size: var(--label-font-size);
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .zone-label {
            padding: 24px 20px;
            font-size: var(--base-font-size);
        }

        @media (max-width: 480px) {
            .day-label {
                padding: 18px 12px;
                font-size: 14px;
            }

            .zone-label {
                padding: 20px 16px;
            }
        }

        .day-label::before,
        .zone-label::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .day-label:hover,
        .zone-label:hover {
            border-color: rgba(102, 126, 234, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        }

        .day-option input[type="radio"]:checked+.day-label,
        .zone-option input[type="radio"]:checked+.zone-label {
            color: white;
            background: var(--primary-gradient);
            border-color: #667eea;
            box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
            transform: translateY(-3px);
        }

        .day-option input[type="radio"]:checked+.day-label::before,
        .zone-option input[type="radio"]:checked+.zone-label::before {
            opacity: 1;
        }

        .day-label:active,
        .zone-label:active {
            transform: scale(0.97);
        }

        .date-info {
            font-size: var(--small-font-size);
            margin-top: 6px;
            color: #718096;
            font-weight: 500;
        }

        .day-option input[type="radio"]:checked+.day-label .date-info {
            color: rgba(255, 255, 255, 0.9);
        }

        .capacity-info {
            font-size: var(--small-font-size);
            margin-top: 10px;
            text-align: center;
            color: #718096;
            font-weight: 600;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: var(--border-radius-sm);
            display: inline-block;
        }

        .zone-label .capacity-info {
            font-size: var(--label-font-size);
        }

        .applicants-list {
            margin-top: 0;
            padding: 0px 4px;
            background: none;
            border-radius: 0;
            flex-grow: 1;
            min-height: calc(100dvh - 280px);
        }

        .applicants-list h3 {
            margin-bottom: 24px;
            color: #1a202c;
            font-size: 22px;
            font-weight: 800;
            text-align: center;
            /* padding: 0px 200px; */
            letter-spacing: -0.5px;
        }

        .day-section {
            margin-bottom: 20px;
            padding: 0;
            background: none;
            border-radius: 0;
            animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .day-title {
            font-weight: 800;
            color: #667eea;
            margin-bottom: 16px;
            font-size: var(--heading-font-size);
            /* padding: 18px 24px; */
            background: transparent;
            border-radius: 16px;
            letter-spacing: -0.3px;
            display: flex;
            align-items: center;
            /* justify-content: center; */
            gap: 8px;
        }

        .zone-applicants {
            margin: 0 0 14px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            border: 2px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
            transition: all 0.3s ease;
        }

        .zone-applicants:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .zone-name {
            font-weight: 800;
            color: #667eea;
            margin-bottom: 14px;
            font-size: var(--button-font-size);
            display: flex;
            align-items: center;
            gap: 8px;
            padding-bottom: 12px;
            border-bottom: 2px solid rgba(102, 126, 234, 0.1);
        }

        .name-tag {
            display: inline-flex;
            align-items: center;
            background: #667eea;
            color: white;
            padding: 8px 11px;
            margin: 6px 8px 6px 0;
            border-radius: 9px;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .name-tag:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
        }

        .name-tag::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
        }

        .name-tag:hover::before {
            left: 100%;
        }

        .applicant-names {
            line-height: 1.8;
            color: #4a5568;
            font-size: var(--label-font-size);
        }

        .zone-selection-container {
            display: none;
        }

        .zone-selection-container.show {
            display: block;
            animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .modal-content {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            margin: 0;
            padding: 30px 20px;
            border-radius: 24px 24px 0 0;
            width: 100%;
            max-width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
            animation: slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes slideUpModal {
            from {
                transform: translateY(100%);
            }

            to {
                transform: translateY(0);
            }
        }

        .modal-content.large {
            max-width: 100%;
        }

        .close {
            position: absolute;
            right: 20px;
            top: 20px;
            color: #a0aec0;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            background: rgba(255, 255, 255, 0.8);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        .close:hover {
            color: #2d3748;
            background: white;
            transform: scale(1.1);
        }

        .modal h2 {
            text-align: center;
            color: #1a202c;
            margin-bottom: 32px;
            font-size: 24px;
            font-weight: 800;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .cancel-list {
            max-height: 400px;
            overflow-y: auto;
            padding-right: 5px;
        }

        .cancel-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            margin-bottom: 12px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .cancel-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        }

        .cancel-info {
            flex: 1;
        }

        .cancel-day {
            font-weight: 800;
            color: #667eea;
            font-size: var(--button-font-size);
        }

        .cancel-details {
            color: #718096;
            font-size: var(--small-font-size);
            margin-top: 4px;
            font-weight: 500;
        }

        .no-applications {
            text-align: center;
            color: #718096;
            font-style: normal;
            padding: 80px 20px;
            font-size: 16px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 16px;
            margin: 20px 4px;
            border: 2px dashed rgba(102, 126, 234, 0.2);
        }

        .no-applications::before {
            content: '📭';
            display: block;
            font-size: 48px;
            margin-bottom: 16px;
        }

        .admin-form {
            margin-bottom: 24px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            margin-bottom: 20px;
        }

        .admin-action-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* stats-header 스타일 수정 */
        .stats-header {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 24px;
            flex-wrap: nowrap;
            /* 요소가 한 줄에 유지되도록 */
        }

        /* month-navigation 스타일 수정 */
        .month-navigation {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            padding: 10px 16px;
            border-radius: 12px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            width: auto;
            max-width: 100%;
        }

        .month-nav-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 10px;
            width: 40px;
            /* 버튼 크기 조정 */
            height: 40px;
            cursor: pointer;
            font-size: 14px;
            /* 폰트 크기 조정 */
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .month-nav-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .current-month {
            font-size: 16px;
            /* 폰트 크기 조정 */
            font-weight: 700;
            color: #2d3748;
            width: auto;
            /* 고정 폭 제거 */
            text-align: center;
            white-space: nowrap;
            /* 텍스트 줄바꿈 방지 */
        }

        .stats-content {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
            padding: 24px;
            border-radius: 16px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        }

        @media (max-width: 768px) {
            .stats-header {
                padding: 0 10px;
                /* 좌우 패딩 추가 */
            }

            .month-navigation {
                gap: 8px;
                /* 모바일에서 간격 축소 */
                padding: 8px 12px;
            }

            .month-nav-btn {
                width: 36px;
                /* 모바일에서 버튼 크기 축소 */
                height: 36px;
                font-size: 12px;
            }

            .current-month {
                font-size: 14px;
                /* 모바일에서 폰트 크기 축소 */
            }
        }

        @media (max-width: 390px) {
            .month-navigation {
                gap: 6px;
                /* 더 작은 화면에서 간격 축소 */
                padding: 6px 10px;
            }

            .month-nav-btn {
                width: 32px;
                height: 32px;
                font-size: 11px;
            }

            .current-month {
                font-size: 13px;
            }
        }

        .stats-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 12px;
            margin-bottom: 24px;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: 16px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: transform 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-3px);
        }

        .stat-number {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 6px;
        }

        .stat-label {
            font-size: 13px;
            color: #718096;
            font-weight: 600;
        }

        .zone-stats {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .zone-stat-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            padding: 18px;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: transform 0.3s ease;
        }

        .zone-stat-card:hover {
            transform: translateY(-2px);
        }

        .zone-stat-title {
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 12px;
            font-size: 16px;
        }

        .zone-stat-bar {
            background: rgba(226, 232, 240, 0.8);
            border-radius: 8px;
            height: 10px;
            margin-bottom: 8px;
            overflow: hidden;
            backdrop-filter: blur(5px);
        }

        .zone-stat-fill {
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            border-radius: 8px;
            height: 100%;
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        .zone-stat-text {
            font-size: var(--label-font-size);
            color: #718096;
            font-weight: 600;
        }

        .user-list {
            margin-top: 28px;
            padding: 24px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(15px);
            border-radius: 16px;
            max-height: 400px;
            overflow-y: auto;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        }

        .user-list h3 {
            margin-bottom: 18px;
            color: #1a202c;
            font-size: 18px;
            font-weight: 700;
        }

        .user-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .user-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        }

        .user-name {
            font-weight: 600;
            color: #2d3748;
            font-size: 16px;
        }

        .version-info {
            text-align: center;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.7);
            margin-top: 20px;
            font-weight: 500;
            padding: 0 20px;
        }

        .notice-button {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            font-size: 20px;
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .notice-button.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

        .notice-button.inactive {
            background: rgba(255, 255, 255, 0.9);
            color: #718096;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .notice-button:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
        }

        .top-bar-right {
            display: flex;
            align-items: center;
            gap: 12px;
            /* 아이콘과 이름 사이 간격 */
        }

        .action-buttons .btn:first-child {
            flex: 7;
            /* 7의 비율 */
            font-weight: 800;
            /* 글자를 더 굵게 강조 */
            font-size: 22px;
            /* 메인 버튼이므로 글자를 조금 더 크게 */
            z-index: 1;
            /* 겹침 이슈 방지 */
        }

        /* 두 번째 버튼 (신청 취소) - 비율 3 */
        .action-buttons .btn:last-child {
            flex: 3;
            /* 3의 비율 */
            font-size: 18px;
            /* 신청 버튼보다는 약간 작게 하여 위계 구분 */
            background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
            /* 너무 튀지 않는 밝은 회색 톤 */
            color: #4a5568;
            /* 글자색을 진한 회색으로 변경하여 가독성 확보 */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            /* 신청 버튼보다 옅은 그림자 */
        }

        /* 취소 버튼 호버 효과 (선택 사항) */
        .action-buttons .btn:last-child:hover {
            background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
            transform: translateY(-2px);
        }

        /* 바 안에 들어가는 아이콘 버튼 공통 스타일 */
        .bar-icon-btn {
            background: transparent;
            border: none;
            font-size: 20px;
            /* 아이콘 크기 */
            cursor: pointer;
            padding: 0;
            width: 36px;
            /* 정사각형 크기 */
            height: 36px;
            border-radius: 50%;
            /* 완전한 원형 */
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            position: relative;
        }

        #noticeButton,
        #memoButton {
            position: static !important;
            /* 고정 위치 해제 */
            box-shadow: none !important;
            /* 그림자 제거 */
            margin: 0 !important;
        }

        #noticeButton {
            width: auto;
            /* 너비 자동 조절 */
            height: 32px;
            /* 높이를 조금 줄여서 날렵하게 */
            padding: 0 12px;
            /* 좌우 패딩을 줘서 타원 모양 만듦 */
            border-radius: 20px;
            /* 둥근 모서리 (높이의 절반 이상) */
            font-size: 16px;
            /* 폰트 크기 약간 축소 */
            background: rgba(102, 126, 234, 0.1);
            /* 기본 배경색 추가 (선택사항) */
            color: #4a5568;
            /* 텍스트 색상 */
            gap: 6px;
            /* 아이콘과 텍스트 사이 간격 (만약 텍스트 추가 시) */
        }

        #noticeButton:hover {
            background: rgba(102, 126, 234, 0.2);
            /* 배경색 진하게 */
            transform: scale(1.05);
            /* 살짝 커지는 효과 */
        }

        /* 메모 버튼 등 다른 원형 버튼 호버 효과 */
        .bar-icon-btn:not(#noticeButton):hover {
            background: rgba(102, 126, 234, 0.1);
            transform: scale(1.1);
        }

        /* 알림 뱃지 위치 미세 조정 (타원 버튼에 맞게) */
        #noticeButton .notice-badge {
            top: 2px;
            /* 약간 위로 */
            right: 4px;
            /* 약간 오른쪽으로 */
            width: 8px;
            height: 8px;
            box-shadow: 0 0 0 1px white;
            /* 테두리 얇게 */
        }

        .bar-icon-btn:hover {
            background: rgba(102, 126, 234, 0.1);
            transform: scale(1.1);
        }

        .notice-badge {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 8px;
            height: 8px;
            background: #e53e3e;
            border-radius: 50%;
            display: none;
            box-shadow: 0 0 0 2px white;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }

            100% {
                transform: scale(1);
            }
        }

        .notice-modal-content h2.important {
            color: #e53e3e;
        }

        .notice-modal-content h2.normal {
            color: #667eea;
        }

        .notice-date {
            font-size: 12px;
            color: #a0aec0;
            text-align: center;
            margin-top: 18px;
            font-weight: 500;
        }

        .important-notice-checkbox {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background: rgba(102, 126, 234, 0.05);
            border-radius: 12px;
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

        .important-notice-checkbox input[type="checkbox"] {
            width: auto;
            margin: 0;
            transform: scale(1.3);
            accent-color: #667eea;
        }

        .important-notice-checkbox label {
            font-size: 15px;
            color: #2d3748;
            cursor: pointer;
            margin: 0;
            font-weight: 600;
        }

        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6b46c1 100%);
        }

        @media (max-width: 768px) {
            body {
                padding: 0;
                align-items: flex-start;
            }

            .container {
                border-radius: 0;
                min-height: 100dvh;
            }

            h1 {
                font-size: 24px;
                padding: 35px 20px 25px;
            }

            .admin-actions {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .day-selection {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .modal-content {
                padding: 25px 20px 35px;
                border-radius: 20px 20px 0 0;
                max-height: 85vh;
            }

            .stats-summary {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .cancel-item {
                flex-direction: column;
                align-items: stretch;
                gap: 16px;
            }

            .cancel-item .btn {
                width: 100%;
                margin: 0;
            }

            .notice-button {
                top: 16px;
                right: 16px;
                width: 48px;
                height: 48px;
                font-size: 18px;
            }

            .action-buttons .btn {
                width: auto;
                /* 기존 width: 100% 해제 (비율 적용을 위해) */
                padding: 25px 0;
                /* 버튼 높이를 키워서 더 눈에 띄게 함 (기존 20px -> 25px) */
                font-size: 20px;
                /* 글자 크기 확대 (기존 약 17px -> 20px) */
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
                /* 그림자를 더 진하게 하여 입체감 부여 */
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 18px;
                /* 둥근 모서리 약간 더 강조 */
            }
        }

        @supports (padding: max(0px)) {
            .container {
                padding-top: max(10px, env(safe-area-inset-top));
            }

            .notice-button {
                top: max(20px, calc(env(safe-area-inset-top) + 10px));
                right: max(20px, calc(env(safe-area-inset-right) + 10px));
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            .btn::before {
                display: none;
            }

            .name-tag::before {
                display: none;
            }
        }

        @media (prefers-contrast: high) {
            .btn {
                border: 2px solid #2d3748;
            }

            .day-label,
            .zone-label {
                border: 2px solid #4a5568;
            }

            .day-option input[type="radio"]:checked+.day-label,
            .zone-option input[type="radio"]:checked+.zone-label {
                border: 2px solid #1a202c;
            }
        }

        @media (hover: none) and (pointer: coarse) {
            .btn:hover {
                transform: none;
                box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
            }

            .day-label:hover,
            .zone-label:hover {
                transform: none;
                box-shadow: none;
                background: rgba(255, 255, 255, 0.7);
            }

            .cancel-item:hover {
                transform: none;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            }

            .stat-card:hover,
            .zone-stat-card:hover,
            .user-item:hover {
                transform: none;
            }

            .btn:active {
                transform: scale(0.97);
                transition: transform 0.1s ease;
            }

            .day-label:active,
            .zone-label:active {
                transform: scale(0.97);
                transition: transform 0.1s ease;
            }
        }

        @media (max-width: 390px) {
            .container {}

            h1 {
                font-size: 22px;
                padding: 30px 16px 20px;
            }

            .btn {
                font-size: 16px;
                padding: 20px;
            }

            .modal-content {
                padding: 20px 16px 30px;
            }

            .modal h2 {
                font-size: 20px;
            }

            .stats-summary {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .month-navigation {
                padding: 10px 16px;
                gap: 12px;
            }

            .current-month {
                font-size: 16px;
            }
        }

        /* 플로팅 메뉴 버튼 컨테이너 */
        .floating-menu-container {
            position: fixed;
            bottom: 20px;
            right: 30px;
            z-index: 900;
            display: flex;
            flex-direction: column-reverse;
            align-items: center;
            gap: 0;
        }

        /* 메인 메뉴 버튼 */
        .floating-menu-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: none;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .floating-menu-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.6s;
        }

        .floating-menu-btn:hover::before {
            left: 100%;
        }

        .floating-menu-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
        }

        /* 햄버거 아이콘 */
        .hamburger-icon {
            width: 24px;
            height: 18px;
            position: relative;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .hamburger-line {
            position: absolute;
            left: 0;
            width: 100%;
            height: 3px;
            background: white;
            border-radius: 2px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .hamburger-line:nth-child(1) {
            top: 0;
        }

        .hamburger-line:nth-child(2) {
            top: 50%;
            transform: translateY(-50%);
        }

        .hamburger-line:nth-child(3) {
            bottom: 0;
        }

        /* 메뉴 열린 상태 */
        .floating-menu-container.open .hamburger-icon {
            transform: rotate(90deg);
        }

        .floating-menu-container.open .hamburger-line:nth-child(1) {
            top: 50%;
            transform: translateY(-50%) rotate(45deg);
        }

        .floating-menu-container.open .hamburger-line:nth-child(2) {
            opacity: 0;
            transform: translateY(-50%) translateX(20px);
        }

        .floating-menu-container.open .hamburger-line:nth-child(3) {
            bottom: 50%;
            transform: translateY(50%) rotate(-45deg);
        }

        /* 서브 메뉴 버튼들 */
        .sub-menu-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            opacity: 0;
            transform: scale(0);
            pointer-events: none;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
            position: absolute;
        }

        /* 다크모드 토글 버튼 */
        .dark-mode-btn {
            background: rgba(255, 255, 255, 0.95);
            color: #f59e0b;
            bottom: 5px;
            right: 5px;
        }

        .dark-mode-btn:hover {
            background: white;
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
        }

        /* 홈 버튼 */
        .home-btn {
            background: rgba(255, 255, 255, 0.95);
            color: #10b981;
            bottom: 5px;
            right: 5px;
        }

        .home-btn:hover {
            background: white;
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
        }

        /* 메뉴 열린 상태 - 서브 버튼들 애니메이션 */
        .floating-menu-container.open .sub-menu-btn {
            opacity: 1;
            pointer-events: auto;
        }

        /* 홈 버튼 (왼쪽으로) */
        .floating-menu-container.open .home-btn {
            transform: translateY(0px) translateX(-70px) scale(1);
            transition-delay: 0.15s;
        }

        /* 모바일 반응형 */
        @media (max-width: 768px) {
            .floating-menu-container {
                bottom: 15px;
                right: 20px;
                gap: 0;
            }

            .floating-menu-btn {
                width: 56px;
                height: 56px;
            }

            .sub-menu-btn {
                width: 46px;
                height: 46px;
                font-size: 18px;
            }

            .dark-mode-btn,
            .home-btn {
                bottom: 5px;
                right: 5px;
            }

            .floating-menu-container.open .home-btn {
                transform: translateY(0px) translateX(-65px) scale(1);
            }

            .hamburger-icon {
                width: 22px;
                height: 16px;
            }

            .hamburger-line {
                height: 2.5px;
            }
        }

        /* 안전 영역 지원 */
        @supports (padding: max(0px)) {
            .floating-menu-container {
                bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
                right: max(30px, calc(env(safe-area-inset-right) + 20px));
            }
        }

        /* 애니메이션 감소 설정 */
        @media (prefers-reduced-motion: reduce) {

            .floating-menu-btn,
            .sub-menu-btn,
            .hamburger-icon,
            .hamburger-line {
                transition-duration: 0.01ms !important;
                animation-duration: 0.01ms !important;
            }
        }

        /* 고대비 모드 지원 */
        @media (prefers-contrast: high) {

            .floating-menu-btn,
            .sub-menu-btn {
                border: 3px solid #2d3748;
            }

            body.dark-mode .floating-menu-btn,
            body.dark-mode .sub-menu-btn {
                border: 3px solid #e2e8f0;
            }
        }

        .time-selection-container {
            display: none;
        }

        .time-selection-container.show {
            display: block;
            animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .time-selection {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin-top: 16px;
        }

        .time-option {
            position: relative;
        }

        .time-option input[type="radio"] {
            display: none;
        }

        #noticeViewContent {
            white-space: pre-line;
            line-height: 1.6;
        }

        .time-label {
            display: block;
            padding: 20px 16px;
            border: none;
            border-radius: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(102, 126, 234, 0.1);
            font-weight: 600;
            font-size: var(--label-font-size);
            position: relative;
            overflow: hidden;
        }

        .time-label::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .time-option input[type="radio"]:checked+.time-label {
            color: white;
            border-color: #667eea;
            box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
            transform: translateY(-2px);
        }

        .time-option input[type="radio"]:checked+.time-label::before {
            opacity: 1;
        }

        .time-label:active {
            transform: scale(0.98);
        }

        .time-label.disabled {
            background: #ff6b6b !important;
            color: white !important;
            border-color: #ff6b6b !important;
            cursor: not-allowed !important;
        }

        .time-capacity-info {
            font-size: 13px;
            margin-top: 8px;
            color: #718096;
            font-weight: 700;
            background: rgba(102, 126, 234, 0.08);
            padding: 6px 12px;
            border-radius: 8px;
            display: inline-block;
        }

        .time-option input[type="radio"]:checked+.time-label .time-capacity-info {
            color: white;
            background: rgba(255, 255, 255, 0.2);
        }

        @media (max-width: 768px) {
            .time-selection {
                grid-template-columns: 1fr;
                gap: 10px;
            }
        }

        /* 시간대 설정 컨테이너 */
        .time-slot-settings {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 20px;
            margin: 16px 0;
            border: 1px solid rgba(102, 126, 234, 0.1);
            min-height: 60px;
            max-height: 300px;
            overflow-y: auto;
        }

        .time-slot-setting {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: all 0.3s ease;
        }

        .time-slot-setting:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }

        .time-slot-row {
            display: grid;
            grid-template-columns: 1fr 1fr auto auto;
            gap: 12px;
            align-items: center;
        }

        .time-input-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .time-input-label {
            font-size: var(--small-font-size);
            color: #667eea;
            font-weight: 600;
            margin: 0;
        }

        .time-picker-container {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .time-picker {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(102, 126, 234, 0.2);
            border-radius: 8px;
            padding: 8px 12px;
            font-size: var(--label-font-size);
        }

        .time-select {
            border: none;
            background: transparent;
            font-size: var(--label-font-size);
            font-weight: 600;
            color: #2d3748;
            cursor: pointer;
        }

        .time-select:focus {
            outline: none;
        }

        .capacity-input {
            width: 70px !important;
            padding: 12px !important;
            text-align: center;
            font-weight: 600;
        }

        .btn.remove-time {
            background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 14px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(252, 129, 129, 0.3);
            min-width: 60px;
        }

        .btn.remove-time:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(252, 129, 129, 0.4);
        }

        .btn.toggle-active {
            background: linear-gradient(135deg, #68d391 0%, #38a169 100%);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 14px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(104, 211, 145, 0.3);
            min-width: 60px;
        }

        .btn.toggle-active:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(104, 211, 145, 0.4);
        }

        .btn.toggle-active.inactive {
            background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
            box-shadow: 0 4px 12px rgba(160, 174, 192, 0.3);
        }

        .time-slot-controls {
            display: flex;
            justify-content: center;
            margin: 20px 0;
        }

        .remove-schedule {
            background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
            color: white;
            border: none;
            border-radius: 10px;
            padding: 10px 16px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(252, 129, 129, 0.3);
            transition: all 0.3s ease;
        }

        .remove-schedule:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(252, 129, 129, 0.4);
        }

        .zone-add-controls {
            display: flex;
            justify-content: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(102, 126, 234, 0.1);
        }

        .empty-time-slots {
            text-align: center;
            color: #a0aec0;
            font-style: italic;
            padding: 30px 20px;
            font-size: 14px;
        }

        /* 모바일 반응형 */
        @media (max-width: 768px) {
            .time-slot-row {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .time-input-group {
                grid-column: 1;
            }

            .capacity-input {
                width: 100% !important;
            }

            .time-picker-container {
                justify-content: space-between;
            }

            .btn.remove-time,
            .btn.toggle-active {
                width: 100%;
                margin-top: 8px;
            }
        }

        .warning {
            font-size: 12px;
            color: #e53e3e;
            margin-top: 4px;
            font-weight: 500;
        }

        /* 글자 크기 조정 버튼 */
        .font-size-btn {
            background: rgba(255, 255, 255, 0.95);
            color: #667eea;
            bottom: 5px;
            right: 5px;
            font-weight: bold;
            font-size: 18px;
        }

        .font-size-btn:hover {
            background: white;
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        /* 글자 크기 슬라이더 컨테이너 */
        .font-size-slider-container {
            position: absolute;
            bottom: 70px;
            right: 10px;
            width: 200px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            padding: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
            opacity: 0;
            transform: translateY(20px) scale(0.9);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            z-index: 1001;
        }

        .font-size-slider-container.show {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        /* 슬라이더 헤더 */
        .slider-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            font-weight: 600;
            color: #2d3748;
        }

        .close-slider {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #a0aec0;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .close-slider:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #4a5568;
        }

        /* 슬라이더 스타일 */
        #fontSizeRange {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #e2e8f0;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
        }

        #fontSizeRange::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #667eea;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
        }

        #fontSizeRange::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #667eea;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
        }

        .slider-value {
            text-align: center;
            margin-top: 8px;
            font-size: 13px;
            color: #718096;
            font-weight: 600;
        }

        /* 플로팅 메뉴 열린 상태에서의 글자 크기 버튼 위치 조정 */
        .floating-menu-container.open .font-size-btn {
            transform: translateY(-70px) translateX(0px) scale(1);
            transition-delay: 0.05s;
        }

        .floating-menu-container.open .home-btn {
            transform: translateY(0px) translateX(-70px) scale(1);
            transition-delay: 0.15s;
        }

        /* 반응형 디자인 */
        @media (max-width: 768px) {
            .font-size-slider-container {
                width: 180px;
                right: 5px;
            }

            .floating-menu-container.open .font-size-btn {
                transform: translateY(-65px) translateX(0px) scale(1);
            }

            .floating-menu-container.open .home-btn {
                transform: translateY(0px) translateX(-65px) scale(1);
            }
        }

        /* 스케줄 설정 스타일 */
        .schedule-item {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }

        .schedule-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .schedule-title {
            font-weight: 700;
            color: #2d3748;
            font-size: 16px;
        }

        .day-selection-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 16px;
        }

        .day-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .day-checkbox input[type="checkbox"] {
            width: auto;
            margin: 0;
        }

        .time-slot-settings {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(5px);
            border-radius: 12px;
            padding: 16px;
            margin-top: 16px;
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

        .time-slot-item {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
            backdrop-filter: blur(10px);
            border-radius: 14px;
            padding: 16px;
            margin-bottom: 14px;
            border: 2px solid rgba(102, 126, 234, 0.12);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: all 0.3s ease;
        }

        .time-slot-item:hover {
            border-color: rgba(102, 126, 234, 0.25);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            transform: translateX(4px);
        }

        .time-slot-header {
            font-size: 15px;
            color: #667eea;
            font-weight: 800;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-bottom: 10px;
            border-bottom: 1px dashed rgba(102, 126, 234, 0.15);
        }

        /* 요일 탭 스타일 - 모바일 최적화 */
        .day-tabs {
            display: flex;
            overflow-x: auto;
            gap: 10px;
            margin-bottom: 24px;
            padding: 8px 4px;
            scrollbar-width: none;
            /* Firefox */
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
        }

        .day-tabs::-webkit-scrollbar {
            display: none;
            /* Chrome, Safari */
        }

        .day-tab {
            flex: 0 0 auto;
            padding: 14px 20px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.9);
            /* border: 2px solid rgba(102, 126, 234, 0.2); */
            cursor: pointer;
            font-weight: 700;
            font-size: 15px;
            white-space: nowrap;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.15s ease;
            background: rgba(255, 255, 255, 0.9);
            scroll-snap-align: start;
            box-shadow: 0 2px 8px rgb(0 0 0 / 19%);
            display: flex;
            flex-direction: row;
            align-items: center;
        }

        .day-tab .day-tab-date {
            max-width: 0;
            opacity: 0;
            margin-left: 0;
            font-size: 12px;
            font-weight: 600;
            overflow: hidden;
            white-space: nowrap;
            transition: max-width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.5s ease,
                margin-left 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .day-tab.active .day-tab-date {
            max-width: 100px;
            opacity: 0.9;
            margin-left: 6px;
        }

        .day-tab:hover {
            background: rgba(102, 126, 234, 0.15);
            /* transform: translateY(-2px); */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .day-tab.active {
            background: #667eea;
            color: white;
            border-color: transparent;
            /* box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); */
            /* transform: translateY(-2px); */
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .day-tab.empty {
            opacity: 0.4;
            cursor: not-allowed;
            background: rgba(255, 255, 255, 0.5);
        }

        @media (max-width: 480px) {
            .day-tab {
                padding: 12px 16px;
                font-size: 14px;
                border-radius: 14px;
            }
        }

        .tab-content {
            min-height: 200px;
        }

        .day-tabs {
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        /* 날씨 버튼 스타일 */
        .weather-btn {
            background: rgba(255, 255, 255, 0.95);
            color: #3b82f6;
            bottom: 5px;
            right: 5px;
        }

        .weather-btn:hover {
            background: white;
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
        }

        /* 플로팅 메뉴 열린 상태에서의 버튼 위치 조정 */
        .floating-menu-container.open .weather-btn {
            transform: translateY(-140px) translateX(0px) scale(1);
            transition-delay: 0.05s;
            /* 가장 먼저 나타나도록 */
        }

        .floating-menu-container.open .font-size-btn {
            transform: translateY(-70px) translateX(0px) scale(1);
            transition-delay: 0.1s;
            /* 두 번째로 나타나도록 */
        }

        .floating-menu-container.open .home-btn {
            transform: translateY(0px) translateX(-70px) scale(1);
            transition-delay: 0.2s;
            /* 마지막으로 나타나도록 */
        }

        @media (max-width: 768px) {
            .floating-menu-container.open .weather-btn {
                transform: translateY(-130px) translateX(0px) scale(1);
            }

            .floating-menu-container.open .font-size-btn {
                transform: translateY(-65px) translateX(0px) scale(1);
            }

            .floating-menu-container.open .home-btn {
                transform: translateY(0px) translateX(-65px) scale(1);
            }
        }

        /* 날씨 모달 오버레이 스타일 */
        .weather-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            justify-content: center;
            align-items: flex-end;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }

        .weather-modal-overlay.active {
            opacity: 1;
        }

        /* 날씨 모달 컨텐츠 스타일 (아래에서 위로 올라오는 애니메이션) */
        .weather-modal-content {
            background-color: #ffffff;
            width: 100%;
            max-width: 800px;
            max-height: 80vh;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
            padding: 25px;
            display: flex;
            flex-direction: column;
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .weather-modal-content.active {
            transform: translateY(0);
        }

        /* 모달 헤더 (제목, 닫기 버튼) */
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            color: #333;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 1.5em;
        }

        .close-button {
            background: none;
            border: none;
            font-size: 2.5em;
            line-height: 1;
            cursor: pointer;
            color: #aaa;
            transition: color 0.2s;
        }

        .close-button:hover {
            color: #333;
        }

        /* 날씨 카드 컨테이너 (스크롤 가능) */
        .forecast-container {
            display: flex;
            overflow-x: auto;
            /* 작은 화면에서 가로 스크롤 가능 */
            gap: 15px;
            padding: 10px 5px;
        }

        /* 스크롤바 디자인 */
        .forecast-container::-webkit-scrollbar {
            height: 8px;
        }

        .forecast-container::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 4px;
        }

        /* 개별 날씨 카드 */
        .forecast-card {
            flex: 0 0 130px;
            /* 카드의 너비를 고정 */
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 15px;
            border: 1px solid #e9ecef;
            text-align: center;
        }

        .forecast-date {
            font-weight: bold;
            margin-bottom: 5px;
            color: #555;
        }

        .forecast-date .day-of-week {
            font-size: 1.2em;
            color: #007bff;
        }

        .forecast-date .month-day {
            font-size: 0.9em;
            color: #6c757d;
        }

        .weather-icon {
            width: 70px;
            height: 70px;
        }

        .weather-description {
            font-size: 0.9em;
            color: #495057;
            margin-bottom: 10px;
            height: 30px;
            /* 설명이 길어도 높이를 유지 */
        }

        .temperature {
            font-size: 1em;
            width: 100%;
            display: flex;
            justify-content: space-around;
        }

        .temp-max {
            color: #e44d26;
            font-weight: bold;
        }

        .temp-min {
            color: #269de4;
        }

        .weather-icon-kma {
            font-size: 4em;
            /* 이모지 아이콘 크기 */
            line-height: 1;
            margin: 10px 0;
        }

        /* 기존 모달 컨텐츠 스타일 유지 */
        .weather-modal-content {
            background-color: #ffffff;
            /* 기본 배경 흰색 유지 */
            width: 100%;
            max-width: 800px;
            max-height: 80vh;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
            padding: 25px;
            display: flex;
            flex-direction: column;
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            /* 여기에 배경 이미지 관련 속성 추가 */
            background-size: cover;
            /* 배경 이미지가 모달 전체를 덮도록 */
            background-position: center bottom;
            /* 배경 이미지 위치 */
            color: #333;
            /* 기본 글자색 */
            position: relative;
            /* 의사 요소를 위한 기준점 */
        }

        /* 모달 컨텐츠 배경 이미지 오버레이 (텍스트 가독성을 높임) */
        .weather-modal-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.5);
            /* 반투명 흰색 오버레이 */
            border-radius: 20px 20px 0 0;
            z-index: 0;
            /* 컨텐츠 아래에 위치 */
            pointer-events: none;
        }

        .weather-modal-content>*:not(::before) {
            position: relative;
            z-index: 1;
            /* 컨텐츠가 오버레이 위에 오도록 */
        }

        /* 날씨별 모달 배경 이미지 */
        .weather-modal-content.clear-bg {
            background-image: url('https://images.unsplash.com/photo-1596482181554-46c05d7b5b7c?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            /* 맑음 */
            color: #222;
        }

        .weather-modal-content.cloudy-bg {
            background-image: url('https://images.unsplash.com/photo-1501612781498-8a211e2f5f7a?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            /* 구름많음 */
            color: #222;
        }

        .weather-modal-content.overcast-bg {
            background-image: url('https://images.unsplash.com/photo-1534082531317-a1dc0c634c03?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            /* 흐림 */
            color: #fff;
        }

        .weather-modal-content.rain-bg {
            background-image: url('https://images.unsplash.com/photo-1534082531317-a1dc0c634c03?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            /* 비 */
            color: #fff;
        }

        .weather-modal-content.sleet-bg {
            /* 비/눈 */
            background-image: url('https://images.unsplash.com/photo-1601614051016-17b738941011?q=80&w=2942&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            color: #fff;
        }

        .weather-modal-content.snow-bg {
            background-image: url('https://images.unsplash.com/photo-1549477025-a1c6a014d48c?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            /* 눈 */
            color: #fff;
        }

        .weather-modal-content.shower-bg {
            /* 소나기 */
            background-image: url('https://images.unsplash.com/photo-1627993074360-1e5f8f8f0f0f?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            color: #fff;
        }

        .weather-modal-content.default-bg {
            background-image: url('https://images.unsplash.com/photo-1500382017468-b27b3d0a6311?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            /* 기본 배경 */
            color: #333;
        }

        /* 모달 헤더 (배경에 따라 글자색 조정) */
        .modal-header h2,
        .close-button {
            color: inherit;
            /* 부모 요소의 글자색을 상속 */
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
            /* 가독성 향상 */
        }


        /* 개별 날씨 카드 스타일 (배경 그라데이션 추가) */
        .forecast-card {
            flex: 0 0 130px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px;
            /* background-color: #f8f9fa; */
            /* 기존 배경색 제거 */
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            /* 테두리 연하게 */
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(5px);
            /* 배경을 흐리게 */
            color: #f8f9fa;
            /* 카드 내부 글자색 밝게 */
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }

        .forecast-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        }

        /* 날씨별 카드 배경 그라데이션 */
        .clear-bg-card {
            background: linear-gradient(135deg, #FFD700, #FFA500);
        }

        /* 맑음: 황금색 */
        .cloudy-bg-card {
            background: linear-gradient(135deg, #A9A9A9, #778899);
        }

        /* 구름많음: 회색 */
        .overcast-bg-card {
            background: linear-gradient(135deg, #696969, #4F4F4F);
        }

        /* 흐림: 진회색 */
        .rain-bg-card {
            background: linear-gradient(135deg, #4682B4, #2F4F4F);
        }

        /* 비: 파란색 */
        .sleet-bg-card {
            background: linear-gradient(135deg, #87CEEB, #6A5ACD);
        }

        /* 비/눈: 하늘색-보라 */
        .snow-bg-card {
            background: linear-gradient(135deg, #B0E0E6, #ADD8E6);
        }

        /* 눈: 연한 하늘색 */
        .shower-bg-card {
            background: linear-gradient(135deg, #40E0D0, #20B2AA);
        }

        /* 소나기: 청록색 */
        .default-bg-card {
            background: linear-gradient(135deg, #87CEEB, #6A5ACD);
        }

        /* 기본: 하늘색 */

        /* 카드 내부 글자색 조정 */
        .forecast-date .day-of-week,
        .forecast-date .month-day,
        .weather-description,
        .temperature,
        .temp-max,
        .temp-min {
            color: inherit;
            /* 부모인 카드 색상 상속 */
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
            /* 가독성 향상 */
        }

        /* 이모지 아이콘 크기 */
        .weather-icon-kma {
            font-size: 4em;
            line-height: 1;
            margin: 10px 0;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
            /* 아이콘에도 그림자 추가 */
        }

        /* 스크롤바 디자인 (조금 더 세련되게) */
        .forecast-container::-webkit-scrollbar {
            height: 8px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

        .forecast-container::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.6);
            border-radius: 4px;
        }

        .forecast-container::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.8);
        }

        /* --- 어두운 배경용 글자색 테마 --- */

        /* 모달 헤더 (제목, 닫기 버튼) */
        .modal-header h2,
        .close-button {
            color: #0e00a8;
            text-shadow: none;
        }

        /* 카드 날짜 (요일 강조) */
        .forecast-date .day-of-week {
            color: #87CEFA;
            /* 밝은 하늘색으로 요일 강조 */
        }

        .forecast-date .month-day {
            color: #dcdcdc;
            /* 날짜는 연한 회색 */
        }

        /* 최고/최저 기온 색상 대비 */
        .temp-max {
            color: #FFB6C1;
            /* 최고기온: 밝은 핑크 */
        }

        .temp-min {
            color: #ADD8E6;
            /* 최저기온: 밝은 하늘색 */
        }

        /* 새로고침 버튼 스타일 */
        .refresh-btn {
            background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
            /* 붉은색 그라데이션 */
            color: white;
            bottom: 5px;
            right: 5px;
        }

        .refresh-btn:hover {
            background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
            /* 호버 시 더 밝은 붉은색 */
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(245, 101, 101, 0.4);
        }

        /* 새로고침 버튼 위치 조정 */
        .floating-menu-container.open .refresh-btn {
            transform: translateY(0px) translateX(-130px) scale(1);
            transition-delay: 0.175s;
        }

        /* 메모 버튼 */
        /* 1. 플로팅 메뉴 안의 메모 버튼 기본 스타일 */
        .memo-btn {
            background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
            /* 메모장 느낌의 주황/노랑 그라데이션 */
            color: white;
            bottom: 5px;
            right: 5px;
            z-index: 995;
            /* 다른 버튼들과 레벨 맞춤 */
        }

        .memo-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(253, 160, 133, 0.4);
        }


        /* 메모 탭 */
        .memo-tabs {
            display: flex;
            overflow-x: auto;
            gap: 8px;
            margin-bottom: 20px;
            padding: 0 10px;
            scrollbar-width: none;
        }

        .memo-tabs::-webkit-scrollbar {
            display: none;
        }

        .memo-tab {
            flex: 0 0 auto;
            padding: 12px 16px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(102, 126, 234, 0.2);
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            white-space: nowrap;
            transition: all 0.3s ease;
        }

        .memo-tab:hover {
            background: rgba(102, 126, 234, 0.1);
        }

        .memo-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        /* 메모 콘텐츠 */
        .memo-content {
            max-height: 400px;
            overflow-y: auto;
            margin-bottom: 20px;
        }

        .memo-item {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }

        .memo-content-text {
            margin-bottom: 10px;
            line-height: 1.6;
        }

        .memo-meta {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #718096;
        }

        .memo-actions {
            margin-top: 10px;
            text-align: right;
        }

        .stats-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid #e2e8f0;
        }

        .stats-tab {
            padding: 10px 20px;
            background: none;
            border: none;
            cursor: pointer;
            font-weight: 600;
            color: #718096;
            border-bottom: 3px solid transparent;
        }

        .stats-tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
        }

        #chartContainer {
            height: 300px;
            margin-bottom: 20px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        /* 모달 배경 */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 메신저 모달 전체 스타일 */
        #messengerModal .modal-content {
            width: 90%;
            max-width: 500px;
            max-height: 85vh;
            background: white;
            border-radius: 16px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            animation: fadeIn 0.3s ease;
            z-index: 10000;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
            margin: auto;
            z-index: 10000;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* 헤더 */
        h2 {
            margin: 0 0 15px 0;
            font-size: 18px;
            font-weight: 600;
        }

        /* 메신저 정보 */
        #messengerInfo {
            margin-bottom: 15px;
            padding: 10px;
            background: #f5f5f5;
            border-radius: 8px;
            font-size: 14px;
        }

        /* 메시지 컨테이너 */
        #messagesContainer {
            flex: 1;
            overflow-y: auto;
            padding: 10px 5px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 15px;
            max-height: 50vh;
            min-height: 200px;
            border: 1px solid #eee;
            border-radius: 8px;
        }

        /* 개별 메시지 */
        .message {
            max-width: 80%;
            padding: 10px 14px;
            border-radius: 18px;
            position: relative;
            word-break: break-word;
        }

        .my-message {
            align-self: flex-end;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-top-right-radius: 4px;
        }

        .other-message {
            align-self: flex-start;
            background: #ede0ac;
            color: #333;
            border-top-left-radius: 4px;
        }

        .message-info {
            display: flex;
            justify-content: space-between;
            margin-top: 4px;
            font-size: 11px;
            opacity: 0.8;
        }

        /* 메시지 입력 영역 */
        .message-input-container {
            display: flex;
            gap: 8px;
            align-items: flex-end;
            padding: 10px 0;
        }

        /* 빨간색 닫기 버튼 */
        .close-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .close-btn:hover {
            background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
            transform: translateY(-1px);
        }

        .close-btn:active {
            transform: scale(0.95);
        }

        #messageInput {
            flex: 1;
            padding: 12px 16px;
            border-radius: 24px;
            border: 1px solid #e0e0e0;
            resize: none;
            min-height: 20px;
            max-height: 100px;
            font-size: 16px;
            line-height: 1.4;
            outline: none;
            font-family: inherit;
        }

        #messageInput:focus {
            border-color: #667eea;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
        }

        #sendMessageBtn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        #sendMessageBtn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        #sendMessageBtn:active {
            transform: scale(0.95);
        }

        /* 스크롤바 */
        #messagesContainer::-webkit-scrollbar {
            width: 4px;
        }

        #messagesContainer::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        #messagesContainer::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 10px;
        }

        /* 모바일 최적화 */
        @media (max-width: 480px) {
            .modal {
                padding: 20px;
            }

            #messengerModal .modal-content {
                width: 100%;
                max-width: none;
                max-height: calc(100vh - 40px);
                padding: 16px;
                border-radius: 12px;
            }

            h2 {
                font-size: 16px;
                margin-bottom: 10px;
            }

            #messagesContainer {
                max-height: calc(100vh - 300px);
                min-height: 150px;
            }

            .message-input-container {
                padding: 8px 0;
                gap: 6px;
            }

            .close-btn {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            #sendMessageBtn {
                width: 40px;
                height: 40px;
            }

            #messageInput {
                padding: 10px 14px;
                font-size: 16px;
            }

            .message {
                max-width: 85%;
                padding: 8px 12px;
            }
        }

        /* 아이폰 안전 영역 대응 */
        @supports (padding: max(0px)) {
            @media (max-width: 480px) {
                .modal {
                    padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
                }

                #messengerModal .modal-content {
                    max-height: calc(100vh - max(40px, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 40px));
                }

                .message-input-container {
                    padding-bottom: max(8px, env(safe-area-inset-bottom));
                }
            }
        }

        /* 가로 모드 */
        @media (max-width: 768px) and (orientation: landscape) {
            #messengerModal .modal-content {
                max-height: calc(100vh - 40px);
            }

            #messagesContainer {
                max-height: calc(100vh - 240px);
                min-height: 120px;
            }
        }

        /* 모달 열려있을 때 배경 스크롤 방지 */
        body.modal-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        /* 테스트 버튼 */
        .test-btn {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 15px 30px;
            font-size: 16px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        /* 로딩 인디케이터 스타일 */
        .loading-indicator {
            text-align: center;
            padding: 30px;
            color: #718096;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #667eea;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* 에러 메시지 스타일 */
        .error-message {
            text-align: center;
            padding: 30px;
            color: #e53e3e;
        }

        /* 시간이 지난 봉사에 대한 스타일 */
        .time-slot-item.passed {
            opacity: 0.7;
            background: linear-gradient(135deg, rgba(245, 245, 245, 0.8) 0%, rgba(229, 229, 229, 0.6) 100%);
            border-left: 4px solid #fc8181;
            position: relative;
        }

        .time-slot-item.passed::before {
            content: '종료';
            position: absolute;
            top: 12px;
            right: 12px;
            background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(252, 129, 129, 0.3);
        }

        .time-slot-item.passed .name-tag {
            background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
            box-shadow: 0 4px 12px rgba(160, 174, 192, 0.25);
            opacity: 0.8;
        }

        /* 종료된 봉사 텍스트 스타일 */
        .time-slot-item.passed .time-slot-header {
            color: #e53e3e !important;
            font-weight: 800 !important;
        }

        /* 지도 미리보기 스타일 */
        #mapPreview {
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
        }

        /* 지도 버튼 스타일 */
        .map-btn {
            background: rgba(255, 255, 255, 0.95);
            color: #667eea;
            bottom: 5px;
            right: 5px;
        }

        .map-btn:hover {
            background: white;
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        /* 플로팅 메뉴 열린 상태에서의 버튼 위치 조정 */
        .floating-menu-container.open .memo-btn {
            transform: translateY(-280px) translateX(0px) scale(1);
            transition-delay: 0.05s;
            /* 가장 먼저 나타나도록 */
        }

        .floating-menu-container.open .map-btn {
            transform: translateY(-210px) translateX(0px) scale(1);
            transition-delay: 0.1s;
            /* 가장 먼저 나타나도록 */
        }

        .floating-menu-container.open .weather-btn {
            transform: translateY(-140px) translateX(0px) scale(1);
            transition-delay: 0.15s;
            /* 두 번째로 나타나도록 */
        }

        .floating-menu-container.open .font-size-btn {
            transform: translateY(-70px) translateX(0px) scale(1);
            transition-delay: 0.2s;
            /* 세 번째로 나타나도록 */
        }

        .floating-menu-container.open .refresh-btn {
            transform: translateY(0px) translateX(-130px) scale(1);
            transition-delay: 0.25s;
            /* 네 번째로 나타나도록 */
        }

        .floating-menu-container.open .home-btn {
            transform: translateY(0px) translateX(-70px) scale(1);
            transition-delay: 0.3s;
            /* 다섯 번째로 나타나도록 */
        }

        /* 모바일 반응형 */
        @media (max-width: 768px) {
            .floating-menu-container.open .memo-btn {
                transform: translateY(-260px) translateX(0px) scale(1);
            }

            .floating-menu-container.open .map-btn {
                transform: translateY(-195px) translateX(0px) scale(1);
            }

            .floating-menu-container.open .weather-btn {
                transform: translateY(-130px) translateX(0px) scale(1);
            }

            .floating-menu-container.open .font-size-btn {
                transform: translateY(-65px) translateX(0px) scale(1);
            }

            .floating-menu-container.open .refresh-btn {
                transform: translateY(0px) translateX(-130px) scale(1);
            }

            .floating-menu-container.open .home-btn {
                transform: translateY(0px) translateX(-65px) scale(1);
            }
        }

        /* 전체 화면 완료 오버레이 스타일 */
        /* 전체 화면 오버레이 */
        .fullscreen-overlay {
            display: none;
            /* 평소엔 숨김 */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.98);
            /* 거의 불투명한 흰색 */
            z-index: 99999;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .status-content {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            animation: fadeUp 0.4s ease-out;
        }

        .status-message {
            margin-top: 20px;
            font-size: 20px;
            font-weight: 700;
            color: #4a5568;
        }

        /* 뱅글뱅글 도는 로딩 스피너 */
        .spinner-border {
            width: 60px;
            height: 60px;
            border: 5px solid #e2e8f0;
            border-top: 5px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        /* 체크 표시 애니메이션 */
        .checkmark {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            display: block;
            stroke-width: 2.5;
            stroke: #fff;
            stroke-miterlimit: 10;
            box-shadow: inset 0px 0px 0px #68d391;
            animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
        }

        .checkmark__circle {
            stroke-dasharray: 166;
            stroke-dashoffset: 166;
            stroke-width: 2.5;
            stroke-miterlimit: 10;
            stroke: #68d391;
            fill: none;
            animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
        }

        .checkmark__check {
            transform-origin: 50% 50%;
            stroke-dasharray: 48;
            stroke-dashoffset: 48;
            animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes stroke {
            100% {
                stroke-dashoffset: 0;
            }
        }

        @keyframes scale {

            0%,
            100% {
                transform: none;
            }

            50% {
                transform: scale3d(1.1, 1.1, 1);
            }
        }

        @keyframes fill {
            100% {
                box-shadow: inset 0px 0px 0px 70px #68d391;
            }
        }

        /* 채팅방 목록 버튼 */
        /* .chat-rooms-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    font-size: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
} */

        .chat-rooms-button:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
        }

        /* 채팅방 목록 스타일 */
        .chat-rooms-list {
            max-height: 400px;
            overflow-y: auto;
            margin-top: 20px;
        }

        /* 휴지통 아이콘 스타일 */
        .trash-icon-box {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: #fff5f5;
            /* 연한 빨간 배경 */
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            box-shadow: 0 4px 6px rgba(229, 62, 62, 0.2);
            animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        .trash-can {
            width: 50px;
            height: 50px;
            animation: shakeTrash 0.5s ease-in-out 0.4s;
            /* 등장 후 흔들림 */
        }

        /* 팝업 등장 효과 */
        @keyframes popIn {
            from {
                transform: scale(0.5);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* 휴지통 흔들림 효과 */
        @keyframes shakeTrash {

            0%,
            100% {
                transform: rotate(0deg);
            }

            25% {
                transform: rotate(-10deg);
            }

            75% {
                transform: rotate(10deg);
            }
        }

        .chat-room-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }

        .chat-room-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
            background: rgba(102, 126, 234, 0.05);
        }

        .chat-room-info {
            flex: 1;
        }

        .chat-room-title {
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 4px;
            font-size: 16px;
        }

        .chat-room-details {
            font-size: 13px;
            color: #718096;
        }

        .chat-room-members {
            font-size: 12px;
            color: #a0aec0;
            margin-top: 4px;
        }

        .chat-room-badge {
            background: #e53e3e;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
        }

        .no-chat-rooms {
            text-align: center;
            padding: 40px 20px;
            color: #a0aec0;
        }

        /* 주간 신청 횟수 카드 */
        .weekly-limit-card {
            background: linear-gradient(135deg, rgb(102 126 234 / 10%) 0%, rgb(118 75 162 / 10%) 100%);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 20px;
            margin: 0 0px 24px 0px;
            display: flex;
            align-items: center;
            gap: 15px;
            border: 1px solid rgba(102, 126, 234, 0.2);
            animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: sticky;
            top: 0;
            /* var(--header-height, 0px) → 0으로 변경 */
            z-index: 90;
            overflow: hidden;
            isolation: isolate;
            transition: border-radius 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                margin 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                padding 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.56s cubic-bezier(0.22, 1.15, 0.36, 1),
                box-shadow 0.35s ease;
        }

        .weekly-limit-card.is-stuck {
            margin-left: -16px;
            margin-right: -16px;
            width: auto;
            border-radius: 0 0 22px 22px;
            padding: 12px 24px;
            box-shadow: 0 10px 26px rgba(102, 126, 234, 0.28);
        }

        .limit-icon {
            font-size: 32px;
            width: 54px;
            height: 54px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 14px;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
        }

        .limit-info {
            flex: 1;
            min-width: 0;
            /* 텍스트 오버플로우 방지 */
            transition: opacity 0.4s ease;
        }

        .limit-label {
            font-size: 13px;
            color: #718096;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .limit-count {
            font-size: 22px;
            font-weight: 800;
            color: #667eea;
            line-height: 1.2;
        }

        .limit-count strong {
            background: #667eea;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* 제한 초과 시 색상 변경 */
        .limit-count.over-limit strong {
            background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* 요일별 신청 현황 어드바이저 */
        .limit-count.advisor-title {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
            font-size: 14px;
            line-height: 1.35;
            font-weight: 700;
            color: #4a5568;
        }

        .limit-advisor-detail {
            margin-top: 5px;
            color: #718096;
            font-size: 11px;
            line-height: 1.35;
            font-weight: 600;
            word-break: keep-all;
            white-space: normal;
        }

        .advisor-status {
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
            padding: 3px 8px;
            border-radius: 999px;
            font-size: 11px;
            line-height: 1.1;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .advisor-status.status-full {
            color: #c53030;
            background: #fff5f5;
        }

        .advisor-status.status-available {
            color: #2f855a;
            background: #f0fff4;
        }

        .advisor-status.status-relaxed {
            color: #2b6cb0;
            background: #ebf8ff;
        }

        .advisor-status.status-near {
            color: #c05621;
            background: #fffaf0;
        }

        .advisor-status.status-ended,
        .advisor-status.status-empty {
            color: #718096;
            background: #edf2f7;
        }

        .limit-advisor-detail strong {
            color: #5a67d8;
        }

        /* 날씨별 어드바이저 카드 테마 */
        .weekly-limit-card.has-advisor {
            transition: background 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease,
                border-radius 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                margin 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                padding 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.56s cubic-bezier(0.22, 1.15, 0.36, 1);
        }

        .weekly-limit-card.weather-clear {
            background: linear-gradient(135deg, #fff8df 0%, #eef7ff 100%);
            border-color: rgba(224, 175, 75, 0.28);
            box-shadow: 0 8px 24px rgba(218, 175, 91, 0.14);
        }

        .weekly-limit-card.weather-cloudy,
        .weekly-limit-card.weather-loading {
            background: linear-gradient(135deg, #edf3f8 0%, #edf1fb 100%);
            border-color: rgba(126, 151, 181, 0.24);
            box-shadow: 0 8px 24px rgba(106, 132, 163, 0.12);
        }

        .weekly-limit-card.weather-rain,
        .weekly-limit-card.weather-drizzle {
            background: linear-gradient(135deg, #e4f0f5 0%, #e8eafa 100%);
            border-color: rgba(91, 132, 160, 0.25);
            box-shadow: 0 8px 24px rgba(80, 121, 149, 0.14);
        }

        .weekly-limit-card.weather-snow {
            background: linear-gradient(135deg, #f2f8ff 0%, #edf2ff 100%);
            border-color: rgba(125, 157, 203, 0.25);
            box-shadow: 0 8px 24px rgba(116, 148, 196, 0.13);
        }

        .weekly-limit-card.weather-thunderstorm {
            background: linear-gradient(135deg, #e9e8f3 0%, #e6edf4 100%);
            border-color: rgba(101, 102, 147, 0.25);
            box-shadow: 0 8px 24px rgba(93, 96, 143, 0.16);
        }

        .weekly-limit-card.weather-mist {
            background: linear-gradient(135deg, #edf1f0 0%, #edf0f7 100%);
            border-color: rgba(130, 148, 148, 0.23);
            box-shadow: 0 8px 24px rgba(114, 132, 133, 0.12);
        }

        .weekly-limit-card.has-advisor .limit-info {
            position: relative;
            z-index: 3;
            padding: 10px 12px;
            margin: -2px 0;
            border: 0;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            backdrop-filter: none;
            text-shadow: 0 1px 3px rgba(255, 255, 255, 0.78);
        }

        .weekly-limit-card.has-advisor::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.24) 48%, rgba(255, 255, 255, 0.02) 100%);
        }

        .weekly-limit-card.has-advisor .limit-label,
        .weekly-limit-card.has-advisor .advisor-title,
        .weekly-limit-card.has-advisor .limit-advisor-detail {
            position: relative;
            z-index: 3;
        }

        .advisor-weather-animation {
            position: absolute;
            inset: 0;
            z-index: 1;
            overflow: hidden;
            pointer-events: none;
            border-radius: inherit;
        }

        .advisor-weather-animation::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01) 62%, rgba(255, 255, 255, 0));
        }

        .weather-sun {
            position: absolute;
            top: -66px;
            right: 12px;
            width: 172px;
            height: 172px;
            border-radius: 50%;
            background: radial-gradient(circle at 36% 34%, #fffef0 0%, #ffe9a6 47%, rgba(255, 214, 102, 0.25) 72%, transparent 73%);
            filter: blur(0.4px);
            opacity: 0.88;
            box-shadow: 0 0 34px rgba(255, 211, 102, 0.35);
            animation: advisorSunPulse 5.5s ease-in-out infinite;
        }

        .weather-sun::before,
        .weather-sun::after {
            content: '';
            position: absolute;
            inset: -18px;
            border: 2px solid rgba(246, 190, 70, 0.24);
            border-radius: 50%;
        }

        .weather-sun::after {
            inset: -34px;
            border-width: 1px;
            border-color: rgba(246, 190, 70, 0.16);
        }

        .weather-cloud {
            position: absolute;
            top: 8px;
            right: -38px;
            width: 202px;
            height: 58px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.68);
            box-shadow: 0 11px 22px rgba(105, 125, 153, 0.16);
            animation: advisorCloudFloat 8s ease-in-out infinite;
        }

        .weather-cloud.weather-cloud-back {
            top: -13px;
            right: 58px;
            transform: scale(0.68);
            transform-origin: right center;
            opacity: 0.42;
            animation-duration: 12s;
            animation-delay: -3.5s;
            animation-name: advisorCloudBackFloat;
        }

        .weather-cloud.weather-cloud-front {
            animation-delay: -1.7s;
        }

        .weather-cloud::before,
        .weather-cloud::after {
            content: '';
            position: absolute;
            bottom: 18px;
            border-radius: 50%;
            background: inherit;
        }

        .weather-cloud::before {
            right: 62px;
            width: 66px;
            height: 66px;
        }

        .weather-cloud::after {
            right: 22px;
            width: 45px;
            height: 45px;
        }

        .weather-drop,
        .weather-flake {
            position: absolute;
            top: 62px;
        }

        .weather-drop {
            width: 3px;
            height: 24px;
            border-radius: 999px;
            background: linear-gradient(to bottom, rgba(93, 145, 177, 0.08), rgba(74, 126, 164, 0.78));
            transform: rotate(15deg);
            filter: blur(0.15px);
            animation: advisorRainFall 1.05s linear infinite;
        }

        .weather-drizzle-drop {
            width: 2px;
            height: 11px;
            opacity: 0.8;
            animation-duration: 1.55s;
        }

        .weather-flake {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 0 10px rgba(135, 169, 211, 0.66);
            animation: advisorSnowFall 3.4s ease-in-out infinite;
        }

        .weather-lightning {
            position: absolute;
            top: 52px;
            right: 87px;
            width: 30px;
            height: 50px;
            background: #f8d477;
            clip-path: polygon(55% 0, 100% 0, 64% 42%, 93% 42%, 20% 100%, 39% 54%, 8% 54%);
            opacity: 0;
            filter: drop-shadow(0 0 8px rgba(248, 212, 119, 0.65));
            animation: advisorLightning 4.2s ease-in-out infinite;
        }

        .weather-fog {
            position: absolute;
            left: -10%;
            width: 120%;
            height: 18px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.42);
            filter: blur(4px);
            animation: advisorFogDrift 7s ease-in-out infinite;
        }

        .weather-fog.fog-one { top: 24px; }
        .weather-fog.fog-two { top: 53px; animation-delay: -2.2s; opacity: 0.7; }
        .weather-fog.fog-three { top: 82px; animation-delay: -4.1s; opacity: 0.5; }

        .weather-shimmer {
            position: absolute;
            top: -30%;
            left: -20%;
            width: 45%;
            height: 160%;
            transform: rotate(18deg);
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
            animation: advisorShimmer 3.8s ease-in-out infinite;
        }

        @keyframes advisorSunPulse {
            0%, 100% { transform: scale(0.96); opacity: 0.72; }
            50% { transform: scale(1.045); opacity: 0.96; }
        }

        @keyframes advisorCloudFloat {
            0%, 100% { transform: translate3d(0, 0, 0); }
            50% { transform: translate3d(-12px, 4px, 0); }
        }

        @keyframes advisorCloudBackFloat {
            0%, 100% { transform: translate3d(0, 0, 0) scale(0.68); }
            50% { transform: translate3d(-8px, 3px, 0) scale(0.68); }
        }

        @keyframes advisorRainFall {
            0% { transform: translate3d(0, -15px, 0) rotate(15deg); opacity: 0; }
            18% { opacity: 0.7; }
            100% { transform: translate3d(-18px, 102px, 0) rotate(15deg); opacity: 0; }
        }

        @keyframes advisorSnowFall {
            0% { transform: translate3d(0, -12px, 0); opacity: 0; }
            18% { opacity: 0.86; }
            55% { transform: translate3d(10px, 31px, 0); }
            100% { transform: translate3d(-10px, 102px, 0); opacity: 0; }
        }

        @keyframes advisorLightning {
            0%, 43%, 49%, 100% { opacity: 0; }
            45%, 47% { opacity: 0.8; }
        }

        @keyframes advisorFogDrift {
            0%, 100% { transform: translateX(-3%); }
            50% { transform: translateX(5%); }
        }

        @keyframes advisorShimmer {
            0% { transform: translateX(-180%) rotate(18deg); }
            60%, 100% { transform: translateX(430%) rotate(18deg); }
        }

        @media (prefers-reduced-motion: reduce) {
            .advisor-weather-animation *,
            .advisor-weather-animation::after {
                animation: none !important;
            }
        }

        /* 관리자용 날씨 애니메이션 미리보기 */
        .weather-preview-modal-content {
            max-width: 760px;
        }

        .weather-preview-description {
            margin: -4px 0 18px;
            color: #718096;
            font-size: 13px;
            line-height: 1.5;
        }

        .weather-preview-options {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }

        .weather-preview-btn {
            min-height: 48px;
            padding: 8px 6px;
            border: 1px solid rgba(102, 126, 234, 0.15);
            border-radius: 12px;
            background: rgba(247, 250, 252, 0.9);
            color: #4a5568;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .weather-preview-btn:hover {
            transform: translateY(-2px);
            background: #fff;
            border-color: rgba(102, 126, 234, 0.38);
            box-shadow: 0 5px 12px rgba(102, 126, 234, 0.12);
        }

        .weather-preview-btn.active {
            color: #4c51bf;
            background: #eef2ff;
            border-color: rgba(102, 126, 234, 0.52);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        }

        .weather-preview-card {
            position: relative;
            top: auto;
            width: 100%;
            min-height: 118px;
            margin: 20px 0 0;
            box-sizing: border-box;
        }

        .weather-preview-card .limit-info {
            width: 100%;
        }

        @media (max-width: 560px) {
            .weather-preview-options {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        /* 모바일 반응형 */
        @media (max-width: 768px) {
            .weekly-limit-card {
                margin: 6px 5px 14px 5px;
                padding: 14px;
                border-radius: 1;
            }

            .limit-icon {
                font-size: 28px;
                width: 48px;
                height: 48px;
            }

            .limit-label {
                font-size: 12px;
            }

            .limit-count {
                font-size: 20px;
            }
        }

        @media (max-width: 390px) {
            .weekly-limit-card {
                padding: 16px;
                gap: 12px;
            }

            .limit-icon {
                font-size: 24px;
                width: 42px;
                height: 42px;
            }

            .limit-count {
                font-size: 18px;
            }
        }

        /* 모바일 반응형 */
        @media (max-width: 768px) {
            .chat-rooms-button {
                bottom: 15px;
                left: 15px;
                width: 56px;
                height: 56px;
                font-size: 22px;
            }

            .chat-room-item {
                padding: 14px;
            }
        }

        /* 안전 영역 지원 */
        @supports (padding: max(0px)) {
            .chat-rooms-button {
                bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
                left: max(20px, calc(env(safe-area-inset-left) + 10px));
            }
        }

        /* 채팅방 버튼 깜빡임 애니메이션 */
        @keyframes blink {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }

            100% {
                opacity: 1;
            }
        }

        .chat-rooms-button.has-unread {
            animation: blink 2s infinite;
            background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
        }

        /* 채팅방 목록에서 읽지 않은 메시지 표시 */
        .chat-room-badge.unread {
            background: #e53e3e;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
        }

        /* 하단 네비게이션 바 */
        :root {
            --bottom-nav-height: 70px;
        }

        /* 하단 네비게이션 바 - iOS 스타일 알약/섬 형태 */
        .bottom-nav {
            position: fixed;
            bottom: calc(20px + env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            width: calc(100vw - 40px);
            max-width: 600px;
            height: var(--bottom-nav-height);
            background: #ffffff00;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgb(255 255 255 / 17%);
            border-radius: 35px;
            display: none;
            justify-content: space-around;
            align-items: center;
            padding: 8px 8px;
            z-index: 1000;
            box-shadow:
                0 10px 40px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .bottom-nav.visible {
            display: flex;
        }

        /* 확장 상태 - 스크롤 또는 클릭 시 */
        .bottom-nav.expanded {
            height: 85px;
            padding: 12px 16px;
            background: rgb(255 255 255 / 0%);
            box-shadow:
                0 15px 50px rgba(0, 0, 0, 0.2),
                0 6px 16px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 48px;
            padding: 8px 6px;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #718096;
            text-decoration: none;
            position: relative;
            gap: 4px;
            flex: 1;
        }

        .nav-item:active {
            transform: scale(0.9);
        }

        /* 축소 상태 - 아이콘만 */
        .nav-item svg {
            width: 26px;
            height: 26px;
            stroke: currentColor;
            fill: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
        }

        .nav-item span {
            font-size: 0px;
            font-weight: 600;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            color: #4a5568;
        }

        /* 확장 상태 - 아이콘 + 텍스트 */
        .bottom-nav.expanded .nav-item svg {
            width: 30px;
            height: 30px;
            margin-bottom: 2px;
        }

        .bottom-nav.expanded .nav-item span {
            font-size: 11px;
            opacity: 1;
            transform: translateY(0);
        }

        /* 활성 상태 */
        .nav-item.active {
            color: #667eea;
        }

        .nav-item.active svg {
            filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
        }

        .bottom-nav.expanded .nav-item.active svg {
            filter: drop-shadow(0 3px 6px rgba(102, 126, 234, 0.4));
        }

        /* 호버 효과 */
        .nav-item:hover {
            color: #667eea;
        }

        /* 콘텐츠 섹션 스타일 */
        .content-section {
            display: none;
            padding: 16px;
            padding-bottom: 10px;
            min-height: calc(100dvh - 60px - 60px);
        }

        .content-section.active {
            display: block !important;
        }

        @media (max-width: 480px) {
            .content-section {
                padding: 4px;
            }
        }

        .tool-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tool-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
        }

        .tool-card h3 {
            margin: 0 0 5px 0;
            font-size: 18px;
            color: #1a202c;
        }

        .tool-card p {
            margin: 0;
            font-size: 14px;
            color: #718096;
        }

        /* 컨테이너에 하단 여백 추가 - 플로팅 네비게이션 바 고려 */
        .container {
            padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-action-bar-height) + 30px);
        }

        @media (max-width: 480px) {
            .container {
                padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-action-bar-height) - 40px);
            }
        }

        /* 모달을 전체 화면으로 변경 */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: #f8f9fa;
            overflow-y: auto;
            padding-bottom: calc(var(--bottom-nav-height) + 40px);
        }

        .modal-content {
            background-color: transparent;
            margin: 0;
            padding: 20px;
            border: none;
            width: 100%;
            max-width: 100%;
            box-shadow: none;
            border-radius: 0;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: rgba(255, 255, 255, 0.95);
            border-bottom: 1px solid rgba(102, 126, 234, 0.2);
            margin: -20px -20px 20px -20px;
        }

        /* 플로팅 메뉴 숨기기 */
        .floating-menu-container {
            display: none !important;
        }

        /* 초기 로딩 화면 */
        /* 초기 로딩 화면 - 개선된 버전 */
        .initial-loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #ffffff;
            /* 흰색 배경 */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            transition: opacity 0.3s ease;
        }

        .initial-loading-content {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 24px;
        }

        .initial-loading-logo {
            width: 120px;
            height: 120px;
            object-fit: contain;
            animation: fadeInScale 0.6s ease-out;
        }

        .initial-loading-progress {
            width: 200px;
            height: 4px;
            background: #e2e8f0;
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }

        .initial-loading-bar {
            height: 100%;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
            animation: loadingProgress 1.5s ease-in-out infinite;
        }

        .initial-loading-text {
            color: #1a202c;
            font-size: 16px;
            font-weight: 600;
        }

        .initial-loading-subtext {
            color: #718096;
            font-size: 14px;
        }

        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.8);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes loadingProgress {
            0% {
                width: 0%;
                margin-left: 0%;
            }

            50% {
                width: 70%;
                margin-left: 15%;
            }

            100% {
                width: 0%;
                margin-left: 100%;
            }
        }

        /* 활성화된 네비게이션 아이템 표시 */
        .bottom-nav .nav-item.active {
            color: #667eea;
            background: rgba(102, 126, 234, 0.08);
            border-radius: 20px;
        }

        .bottom-nav .nav-item.active svg {
            stroke: #667eea;
            filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
        }

        /* 콘텐츠 영역이 네비게이션 바 위로 스크롤되도록 */
        .content-section {
            display: none;
            /* padding: 20px; */
            padding-bottom: 10px;
            /* ← 줄이기 */
            min-height: calc(100dvh - 60px - 60px);
        }

        .content-section.active {
            display: block;
        }

        .tool-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tool-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
        }

        .tool-card h3 {
            margin: 0 0 5px 0;
            font-size: 18px;
            color: #1a202c;
        }

        .tool-card p {
            margin: 0;
            font-size: 14px;
            color: #718096;
        }

        /* 글자 크기 조절 스타일 개선 */
        .font-size-control {
            padding: 20px;
            background: rgba(102, 126, 234, 0.05);
            border-radius: 12px;
        }

        .font-size-preview {
            text-align: center;
            padding: 20px;
            background: white;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        #fontPreviewText {
            font-weight: 600;
            color: #667eea;
            transition: font-size 0.2s ease;
        }

        .font-size-slider-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        .font-size-label {
            font-size: 13px;
            color: #718096;
            font-weight: 500;
            min-width: 40px;
        }

        #settingsFontSizeRange {
            flex: 1;
            height: 6px;
            border-radius: 3px;
            background: linear-gradient(to right, #cbd5e0, #667eea);
            outline: none;
            -webkit-appearance: none;
        }

        #settingsFontSizeRange::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #667eea;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
            transition: all 0.2s ease;
        }

        #settingsFontSizeRange::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            background: #764ba2;
        }

        #settingsFontSizeRange::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #667eea;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
        }

        .font-size-value {
            text-align: center;
            font-size: 14px;
            font-weight: 700;
            color: #667eea;
            padding: 8px;
            background: white;
            border-radius: 6px;
        }

        /* 2층 하단 네비게이션 바 (신청 버튼) */
        :root {
            --bottom-nav-height: 71px;
            --bottom-action-bar-height: 68px;
            /* ← 2 층 높이 추가 */
        }

        .bottom-action-bar {
            position: fixed;
            bottom: calc(var(--bottom-nav-height) + 25px + env(safe-area-inset-bottom));
            /* 플로팅 nav 위에 배치 (여유공간 추가) */
            left: 50%;
            transform: translateX(-50%);
            width: calc(100vw - 40px);
            max-width: 600px;
            height: var(--bottom-action-bar-height);
            background: transparent;
            /* backdrop-filter: blur(20px); */
            border: transparent;
            border-radius: 35px;
            display: none;
            justify-content: space-around;
            align-items: center;
            gap: 10px;
            /* padding: 8px 10px; */
            z-index: 999;
            /* box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4); */
        }

        .bottom-action-bar.visible {
            display: flex;
        }

        .bottom-action-bar .btn {
            padding: 14px 18px;
            font-size: 16px;
            margin-bottom: 0;
            border-radius: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            max-width: 48%;
        }

        .bottom-action-bar .btn:first-child {
            flex: 1.5;
        }

        /* ===== 봉사 캘린더 스타일 ===== */
        #calendarModal .modal-content {
            max-height: 90dvh;
            overflow-y: auto;
        }

        .calendar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .calendar-header button {
            background: none;
            border: none;
            font-size: 22px;
            cursor: pointer;
            color: #667eea;
            padding: 4px 10px;
            border-radius: 8px;
        }

        .calendar-header button:hover {
            background: rgba(102, 126, 234, 0.1);
        }

        .calendar-title {
            font-size: 18px;
            font-weight: 800;
            color: #2d3748;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            margin-bottom: 12px;
        }

        .cal-day-label {
            text-align: center;
            font-size: 12px;
            font-weight: 700;
            color: #718096;
            padding: 4px 0;
        }

        .cal-cell {
            min-height: 52px;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 5px 2px 3px;
            font-size: 13px;
            font-weight: 600;
            color: #2d3748;
            background: #f7f8fc;
            border: 1px solid transparent;
            cursor: default;
            position: relative;
        }

        .cal-cell.empty {
            background: transparent;
            border: none;
        }

        .cal-cell.today {
            border: 2px solid #667eea;
            background: rgba(102, 126, 234, 0.07);
        }

        .cal-cell.past-service {
            background: linear-gradient(135deg, #667eea22 0%, #764ba222 100%);
            border: 1px solid #667eea55;
        }

        .cal-cell.future-service {
            background: linear-gradient(135deg, #fbd38d44, #f6ad5566);
            border: 1px solid #ed893699;
        }

        .cal-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            margin-top: 3px;
        }

        .cal-dot.past {
            background: #667eea;
        }

        .cal-dot.future {
            background: #ed8936;
        }

        .cal-cell-date {
            font-size: 13px;
            font-weight: 700;
            line-height: 1;
        }

        .cal-cell-label {
            font-size: 9px;
            font-weight: 700;
            margin-top: 2px;
            border-radius: 4px;
            padding: 1px 4px;
            color: white;
        }

        .cal-cell-label.past {
            background: #667eea;
        }

        .cal-cell-label.future {
            background: #ed8936;
        }

        .calendar-legend {
            display: flex;
            gap: 16px;
            justify-content: center;
            margin-top: 12px;
            font-size: 12px;
            color: #718096;
        }

        .legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 4px;
        }

        /* 통계 카테고리 버튼 */
        .stats-category-btn {
            padding: 10px 20px;
            border: 1.5px solid rgba(102, 126, 234, 0.3);
            border-radius: 10px;
            background: white;
            font-size: 14px;
            font-weight: 600;
            color: #718096;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .stats-category-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        /* 통계 탭 버튼 */
        .stats-tab {
            padding: 8px 20px;
            border: 1.5px solid rgba(102, 126, 234, 0.3);
            border-radius: 20px;
            background: white;
            font-size: 13px;
            font-weight: 600;
            color: #718096;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .stats-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
        }

        /* 통계 테이블 */
        .stats-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        }

        .stats-table th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 12px 10px;
            text-align: center;
            font-weight: 700;
            font-size: 13px;
            letter-spacing: 0.3px;
        }

        .stats-table td {
            padding: 10px;
            border-bottom: 1px solid rgba(102, 126, 234, 0.08);
            vertical-align: top;
            font-size: 13px;
        }

        .stats-table tbody tr:nth-child(even) td {
            background: rgba(102, 126, 234, 0.04);
        }

        .stats-table tbody tr:hover td {
            background: rgba(102, 126, 234, 0.08);
        }

        .stats-name-tag {
            display: inline-block;
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin: 2px 3px 2px 0;
        }

        .stats-count-badge {
            display: inline-block;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 2px 7px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 700;
            margin-left: 3px;
        }

        .stats-zone-name {
            font-weight: 700;
            color: #2d3748;
        }

        .stats-summary-text {
            font-size: 12px;
            color: #667eea;
            font-weight: 600;
            margin-top: 3px;
        }

        /* 교체할 코드 */
        .modal-close-btn {
            background: none;
            border: none;
            color: #a0aec0;
            font-size: 24px;
            cursor: pointer;
            padding: 0 4px;
            line-height: 1;
            flex-shrink: 0;
        }

        .modal-close-btn:hover {
            color: #2d3748;
        }

        /* 성능 최적화를 위한 will-change 속성 */
        .chat-room-item,
        .application-item,
        .modal-content {
            will-change: transform;
        }

        /* GPU 가속 활성화 */
        .hardware-accelerate {
            transform: translateZ(0);
            backface-visibility: hidden;
        }

        .login-input-row {
            display: flex;
            align-items: stretch;
            gap: 8px;
        }

        .login-input-row input[type="text"] {
            flex: 8;
            width: auto;
            min-width: 0;
        }

        .login-input-row .login-confirm-btn {
            flex: 2;
            width: auto;
            min-width: 0;
            margin-bottom: 0;
            padding: 20px 12px;
            white-space: nowrap;
        }

        /* ===== 내 일정 탭과 글라스 캘린더 ===== */
        .day-tab {
            border: 1px solid rgba(255, 255, 255, 0.72);
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(247, 248, 255, 0.58));
            backdrop-filter: blur(18px) saturate(135%);
            -webkit-backdrop-filter: blur(18px) saturate(135%);
            box-shadow: 0 8px 20px rgba(72, 78, 132, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
        }

        .day-tab:hover {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(238, 240, 255, 0.72));
            border-color: rgba(102, 126, 234, 0.2);
            box-shadow: 0 10px 24px rgba(72, 78, 132, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
        }

        .day-tab.active {
            background: #667eea !important;
            background-image: none !important;
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: none !important;
        }

        .my-day-tab {
            position: relative;
            padding-left: 18px;
            padding-right: 18px;
            border-color: rgba(102, 126, 234, 0.24);
        }

        .my-day-tab:not(.active) {
            color: #5965a7;
            background: linear-gradient(145deg, rgba(235, 238, 255, 0.86), rgba(255, 255, 255, 0.68));
        }

        .day-tab-count {
            display: none;
            min-width: 20px;
            height: 20px;
            align-items: center;
            justify-content: center;
            margin-left: 7px;
            padding: 0 6px;
            border-radius: 999px;
            color: #5965a7;
            background: rgba(255, 255, 255, 0.78);
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
        }

        .day-tab-count.has-count {
            display: inline-flex;
        }

        .my-day-tab.active .day-tab-count {
            color: #667eea;
            background: rgba(255, 255, 255, 0.94);
        }

        .inline-calendar-view {
            position: relative;
            overflow: hidden;
            padding: 22px 20px 18px;
            border: 1px solid rgba(255, 255, 255, 0.78);
            border-radius: 24px;
            background: rgba(255, 255, 255, 0.66);
            backdrop-filter: blur(24px) saturate(135%);
            -webkit-backdrop-filter: blur(24px) saturate(135%);
            box-shadow: 0 18px 45px rgba(72, 78, 132, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.85);
            animation: fadeInUp 0.35s ease both;
        }

        .inline-calendar-header {
            margin: 0 0 12px;
            padding: 0 2px;
        }

        .calendar-header {
            position: relative;
            min-height: 34px;
            align-items: center;
            justify-content: center;
            margin-bottom: 14px;
        }

        .calendar-nav-group {
            position: absolute;
            left: 0;
            display: inline-flex;
            align-items: center;
            gap: 3px;
        }

        .calendar-header button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            padding: 0;
            border: 1px solid rgba(102, 126, 234, 0.12);
            border-radius: 10px;
            color: #667eea;
            background: rgba(255, 255, 255, 0.5);
            font-size: 21px;
            line-height: 1;
        }

        .calendar-header button:hover {
            background: rgba(255, 255, 255, 0.88);
            border-color: rgba(102, 126, 234, 0.28);
        }

        .calendar-header .calendar-today-btn {
            width: auto;
            padding: 0 9px;
            color: #5965a7;
            font-size: 11px;
            font-weight: 800;
        }

        .calendar-title {
            color: #2b3456;
            font-size: 17px;
            font-weight: 850;
            letter-spacing: -0.03em;
        }

        .inline-calendar-view .calendar-grid,
        #calendarModal .calendar-grid {
            position: relative;
            z-index: 1;
            gap: 6px;
            margin-bottom: 14px;
        }

        .cal-day-label {
            padding: 3px 0 7px;
            color: #78819b;
            font-size: 11px;
            font-weight: 800;
        }

        .cal-day-label.sunday {
            color: #c56e82;
        }

        .cal-day-label.saturday {
            color: #6976c2;
        }

        .cal-cell {
            min-height: 58px;
            padding: 7px 3px 5px;
            border: 1px solid rgba(255, 255, 255, 0.68);
            border-radius: 13px;
            color: #303955;
            background: rgba(255, 255, 255, 0.4);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
            cursor: pointer;
            font-family: inherit;
            transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
        }

        .cal-cell:hover {
            border-color: rgba(102, 126, 234, 0.3);
            background: rgba(255, 255, 255, 0.76);
            box-shadow: 0 6px 14px rgba(72, 78, 132, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
            transform: translateY(-1px);
        }

        .cal-cell.empty {
            min-height: 58px;
            border-color: transparent;
            background: transparent;
            box-shadow: none;
            cursor: default;
        }

        .cal-cell.no-service {
            color: #707994;
        }

        .cal-cell.today {
            border: 1.5px solid rgba(102, 126, 234, 0.72);
            background: rgba(226, 230, 255, 0.62);
        }

        .cal-cell.selected {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.14), 0 8px 18px rgba(102, 126, 234, 0.15);
        }

        .cal-cell.past-service {
            border-color: rgba(102, 126, 234, 0.24);
            background: linear-gradient(145deg, rgba(222, 226, 255, 0.68), rgba(255, 255, 255, 0.44));
        }

        .cal-cell.future-service {
            border-color: rgba(237, 137, 54, 0.35);
            background: linear-gradient(145deg, rgba(255, 237, 209, 0.72), rgba(255, 255, 255, 0.46));
        }

        /* 오늘은 완료·예정 일정과 겹쳐도 청록 계열로 명확하게 구분합니다. */
        .cal-cell.today,
        .cal-cell.today.past-service,
        .cal-cell.today.future-service {
            border: 2px solid rgba(24, 157, 145, 0.78);
            color: #176f68;
            background: rgba(222, 247, 243, 0.82);
            box-shadow: 0 0 0 3px rgba(24, 157, 145, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
        }

        .cal-cell-date {
            color: inherit;
            font-size: 13px;
            font-weight: 850;
        }

        .cal-dot {
            width: 6px;
            height: 6px;
            margin-top: 5px;
            border-radius: 999px;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
        }

        .cal-dot.past {
            background: #667eea;
        }

        .cal-dot.future {
            background: #ed8936;
        }

        .cal-cell-label {
            max-width: 100%;
            margin-top: 4px;
            padding: 2px 4px;
            border-radius: 5px;
            color: #fff;
            font-size: 9px;
            font-weight: 850;
            line-height: 1.15;
        }

        .cal-cell-label.past {
            background: rgba(102, 126, 234, 0.88);
        }

        .cal-cell-label.future {
            background: rgba(226, 126, 46, 0.9);
        }

        .calendar-details {
            position: relative;
            z-index: 1;
            margin-top: 4px;
            padding: 14px;
            border: 1px solid rgba(255, 255, 255, 0.74);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.42);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
        }

        .calendar-details-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 9px;
            color: #4b5677;
            font-size: 12px;
        }

        .calendar-details-heading strong {
            color: #303955;
            font-size: 13px;
        }

        .calendar-details-heading span {
            color: #7b85a0;
            font-size: 11px;
            font-weight: 700;
        }

        .calendar-event-list {
            display: grid;
            gap: 8px;
        }

        .calendar-event-row {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            padding: 9px 10px;
            border: 1px solid rgba(255, 255, 255, 0.62);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.54);
        }

        .calendar-event-row.future {
            border-left: 3px solid #ed8936;
        }

        .calendar-event-row.past {
            border-left: 3px solid #667eea;
            opacity: 0.78;
        }

        .calendar-event-date {
            display: flex;
            flex: 0 0 34px;
            flex-direction: column;
            align-items: center;
            color: #667eea;
            line-height: 1;
        }

        .calendar-event-date strong {
            font-size: 17px;
            font-weight: 850;
        }

        .calendar-event-date span {
            margin-top: 4px;
            color: #7b85a0;
            font-size: 10px;
            font-weight: 800;
        }

        .calendar-event-info {
            display: flex;
            flex: 1;
            min-width: 0;
            flex-direction: column;
            gap: 3px;
        }

        .calendar-event-info strong {
            overflow: hidden;
            color: #303955;
            font-size: 13px;
            font-weight: 800;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .calendar-event-info span {
            color: #727d98;
            font-size: 11px;
            font-weight: 700;
        }

        .calendar-event-status {
            flex: 0 0 auto;
            padding: 4px 7px;
            border-radius: 999px;
            color: #c26b2c;
            background: rgba(237, 137, 54, 0.12);
            font-size: 10px;
            font-weight: 850;
        }

        .calendar-event-row.past .calendar-event-status {
            color: #5965a7;
            background: rgba(102, 126, 234, 0.11);
        }

        .calendar-empty,
        .calendar-loading {
            margin: 0;
            padding: 18px 8px;
            color: #7b85a0;
            font-size: 12px;
            font-weight: 700;
            text-align: center;
        }

        .calendar-legend {
            position: relative;
            z-index: 1;
            gap: 14px;
            margin-top: 12px;
            color: #78819b;
            font-size: 10px;
            font-weight: 700;
        }

        #calendarModal .modal-content {
            border: 1px solid rgba(255, 255, 255, 0.78);
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(26px) saturate(135%);
            -webkit-backdrop-filter: blur(26px) saturate(135%);
            box-shadow: 0 24px 70px rgba(42, 48, 92, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        #calendarModal .calendar-details {
            margin-top: 8px;
        }

        @media (max-width: 480px) {
            .inline-calendar-view {
                padding: 19px 13px 15px;
                border-radius: 20px;
            }

            .cal-cell,
            .cal-cell.empty {
                min-height: 52px;
                border-radius: 11px;
            }

            .cal-cell-label {
                font-size: 8px;
            }

            .calendar-details {
                padding: 11px;
            }
        }

    
