/* ============================================
   호호요가 구인 공고 지도 - 스타일시트 (라이트 테마)
   ============================================ */

:root {
    --primary-color: #E8A54B;
    --primary-light: #F5C97E;
    --primary-dark: #C48A2F;
    --accent-color: #E8A54B;
    --success-color: #4ECDC4;
    --error-color: #FF6B6B;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --sidebar-width: 320px;
    --sidebar-collapsed-width: 60px;
    --detail-panel-width: 380px;
    /* 추가된 변수 */
    --ios-blur: blur(20px);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-dark: rgba(26, 26, 46, 0.85);
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow: hidden;
}

/* ios-blur utility */
.ios-blur {
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
    background-color: var(--glass-bg);
}

#app {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    height: 100vh;
    gap: 0;
    position: relative;
    /* Added for mobile absolute positioning */
}

/* 사이드바 컨테이너 (이중 사이드바) */
.sidebar-container {
    display: flex;
    grid-row: 1;
    grid-column: 1;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 100;
}

/* Header - 사이드바 내부로 이동 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-header .logo {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.header-info {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 12px 24px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.header-info span {
    padding: 6px 12px;
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

/* Filter Panel (1차 사이드바) */
.filter-panel {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease, min-width 0.3s ease;
}

.filter-panel.collapsed {
    width: var(--sidebar-collapsed-width);
    min-width: var(--sidebar-collapsed-width);
}

.filter-panel.collapsed .filter-content,
.filter-panel.collapsed .sidebar-header h1,
.filter-panel.collapsed .header-info {
    display: none;
}

.filter-content {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
}

/* Detail Panel (2차 사이드바) */
.detail-panel {
    width: var(--detail-panel-width);
    min-width: var(--detail-panel-width);
    background: var(--bg-light);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, min-width 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.detail-panel.hidden {
    width: 0;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.detail-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.detail-close:hover {
    background: var(--error-color);
    color: white;
}

.detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.day-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.day-filters .filter-btn {
    width: 100%;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* 원형에서 사각형으로 변경 */
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 165, 75, 0.1);
}

.filter-select option {
    background: var(--bg-white);
    color: var(--text-dark);
}

.reset-btn {
    width: 100%;
    padding: 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.reset-btn:hover {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

/* Map Container */
.map-container {
    position: relative;
    background: var(--bg-light);
    grid-row: 1;
    grid-column: 2;
    border-radius: 0;
}

/* ============================================
   아코디언 & 카드 스타일
   ============================================ */

/* 아코디언 아이템 */
.accordion-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.accordion-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(232, 165, 75, 0.1);
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    background: var(--bg-white);
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-toggle {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.accordion-item.open .accordion-toggle {
    transform: rotate(90deg);
    background: var(--primary-color);
    color: white;
}

.accordion-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accordion-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 10px;
    flex-shrink: 0;
}

.accordion-status.active {
    background: rgba(78, 205, 196, 0.15);
    color: #0D9488;
}

.accordion-status.closed {
    background: rgba(255, 107, 107, 0.15);
    color: #DC2626;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-body {
    max-height: 600px;
}

.accordion-content {
    padding: 0 16px 16px 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    padding-top: 16px;
}

/* 단일 아이템 카드 (포인트 1개일 때) */
.job-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.job-card-company {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.job-card-title {
    font-size: 0.8rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.job-tag {
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.job-tag.active {
    background: rgba(78, 205, 196, 0.15);
    color: #0D9488;
}

.job-tag.closed {
    background: rgba(255, 107, 107, 0.15);
    color: #DC2626;
}

.job-details {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.job-row {
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.job-row:last-child {
    margin-bottom: 0;
}

.job-label {
    flex-shrink: 0;
    width: 60px;
    font-weight: 600;
    color: var(--text-dark);
}

.job-row a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.job-row a:hover {
    text-decoration: underline;
}

.job-link {
    display: block;
    padding: 14px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}

.job-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 165, 75, 0.3);
}

/* 광고 영역 스타일 */
.ad-banner-link {
    display: block;
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.ad-banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 추가 광고주 모집 영역 스타일 */
.ad-recruit-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ad-recruit-box {
    flex: 1;
    height: 80px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-recruit-box:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 165, 75, 0.15);
}

/* job content (더보기 기능) */
.job-content-container {
    margin-bottom: 16px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
}

.job-content {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
    white-space: pre-wrap;
    /* 줄바꿈 유지 */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.job-content.collapsed {
    max-height: 2.8em;
    /* 약 3줄 높이 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

/* 흐림 효과 (선택사항, line-clamp 사용 시 겹칠 수 있어 제외하거나 조정) */
/*
.job-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(transparent, #f9fafb);
}
*/

.read-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    padding-top: 8px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* 클러스터 리스트 아이템 */
.cluster-item {
    margin-bottom: 16px;
}

.cluster-item:last-child {
    margin-bottom: 0;
}

/* 클러스터 요약 헤더 */
.cluster-summary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
}

.cluster-summary-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cluster-summary-count {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.cluster-summary-location {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    font-weight: 500;
}

/* 줌 버튼 (클러스터 상세보기) */
.zoom-in-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.zoom-in-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Legend */
.legend {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--bg-white);
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    border: 1px solid var(--border-color);
}

.legend-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-circle.active {
    background: var(--success-color);
}

.legend-circle.closed {
    background: var(--error-color);
}

/* Bubble Styles (for SVG overlays) */
.bubble-label {
    font-size: 12px;
    font-weight: 600;
    fill: white;
    text-anchor: middle;
    dominant-baseline: central;
}

/* 지도 위 정보 카드 (이미지 참고) */
.map-info-card {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 14px;
    display: flex;
    gap: 24px;
    z-index: 500;
    color: white;
}

.map-info-item {
    text-align: center;
}

.map-info-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.map-info-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* 기본적으로 하단 네비게이션과 모바일 버튼은 숨김 (데스크탑) */
.mobile-bottom-nav,
.mobile-only-btn {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 280px;
        --detail-panel-width: 320px;
    }
}

@media (max-width: 768px) {
    #app {
        display: block;
        /* grid 해제 */
        height: 100dvh;
        width: 100vw;
        overflow: hidden;
    }

    /* 지도 배경 */
    .map-container {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    /* 레이어 컨테이너 */
    .sidebar-container {
        position: absolute;
        inset: 0;
        z-index: 10;
        background: transparent;
        box-shadow: none;
        pointer-events: none;
        /* 클릭 관통 */
        display: block;
        /* flex 해제 */
    }

    /* 상단 필터 패널 */
    .filter-panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        min-width: 100% !important;
        background: transparent;
        pointer-events: none;
        padding: 12px;
        max-height: none;
    }

    .sidebar-header {
        padding: 12px 16px;
        background: var(--glass-bg);
        backdrop-filter: var(--ios-blur);
        -webkit-backdrop-filter: var(--ios-blur);
        border-radius: 20px;
        margin-bottom: 8px;
        pointer-events: auto;
        box-shadow: var(--shadow);
    }

    .header-actions {
        display: flex;
        gap: 8px;
        pointer-events: auto;
    }

    .header-info {
        display: none;
    }

    .filter-content {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: var(--ios-blur);
        -webkit-backdrop-filter: var(--ios-blur);
        border-radius: 20px;
        padding: 0;
        margin: 0 12px;
        pointer-events: auto;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .filter-content.show {
        max-height: 500px;
        padding: 16px;
        opacity: 1;
        margin-bottom: 12px;
    }

    .filter-group {
        margin-bottom: 12px;
    }

    .filter-group:last-of-type {
        margin-bottom: 0;
    }

    /* 요일 필터를 가로 스크롤로 변경 */
    .day-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .day-filters::-webkit-scrollbar {
        display: none;
    }

    .day-filters .filter-btn {
        flex: 0 0 auto;
        width: auto !important;
        padding: 0 16px;
        border-radius: 20px;
    }

    /* 광고와 필터 초기화 숨김 (공간 확보) or 하단 이동 */
    .ad-banner-link,
    .ad-recruit-container,
    .reset-btn {
        display: none;
    }

    /* 하단 상세 패널 (Bottom Sheet) */
    .detail-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        min-width: 100% !important;
        max-height: 85vh;
        /* 최대 높이 */
        background: var(--bg-white);
        border-radius: 24px 24px 0 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        z-index: 100;
        pointer-events: auto;
        transform: translateY(calc(100% - 60px));
        /* 기본은 헤더만 보이게 (Peeking) */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .detail-panel.active {
        transform: translateY(0);
    }

    .detail-panel.hidden {
        transform: translateY(100%);
        opacity: 1;
        /* 투명도 대신 위치로 제어 */
        pointer-events: none;
    }

    /* 하단 시트 핸들러 (Drag handle 상징) */
    .detail-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--border-color);
        border-radius: 2px;
    }

    .detail-header {
        padding: 20px 24px 12px;
    }

    .detail-content {
        padding: 16px 20px 40px;
    }

    /* 지도 위 정보 카드 레이아웃 조정 */
    .map-info-card {
        top: auto;
        bottom: 80px;
        right: 16px;
        left: auto;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: rgba(26, 26, 46, 0.85);
        box-shadow: var(--shadow-lg);
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .map-info-item:not(:first-child),
    .map-info-label {
        display: none;
    }

    .map-info-value {
        font-size: 1.25rem;
    }

    /* 하단 네비게이션 바 스타일 */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: var(--glass-bg);
        backdrop-filter: var(--ios-blur);
        -webkit-backdrop-filter: var(--ios-blur);
        border-top: 1px solid var(--border-color);
        justify-content: space-around;
        align-items: center;
        z-index: 200;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-secondary);
        gap: 4px;
        cursor: pointer;
    }

    .nav-item.active {
        color: var(--primary-color);
    }

    .nav-item span.material-icons-round {
        font-size: 24px;
    }

    .nav-label {
        font-size: 10px;
        font-weight: 600;
    }

    .mobile-only-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--border-color);
        background: var(--bg-white);
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-only-btn:active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
}

/* ============================================
   공통 모달 스타일
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 20px;
    width: 280px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.modal-confirm-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-confirm-btn:active {
    background: var(--primary-dark);
}