/**
 * ParkPlay Golf App - Layout Style
 * 앱 레이아웃 공통 스타일 (appLayout.jsp, inc 폴더 JSP용)
 */

/* ========================================
   1. CSS 변수 (Root Variables)
   ======================================== */
:root {
    /* 브랜드 팔레트 v1 (Figma Foundations 6:3 — 2026-07-22 전면 이관, 매핑표: docs/guides/앱-리스킨-현황-백로그.md §4.1) */
    --primary-color: #569544;   /* Brand/Leaf 600 — Primary CTA */
    --primary-dark: #3F7436;    /* Brand/Leaf 700 — Pressed/강조 */
    --primary-light: #72B55A;   /* Brand/Leaf 500 — 선택/Active */
    --primary-hover: #4C873D;   /* Semantic/Action Primary Hover */
    --sprout: #B9D96B;          /* Brand/Sprout 300 — 밝은 브랜드 포인트/보더 */
    --accent-color: #F2CF68;    /* Accent/Sun 300 — 혜택/알림 강조 */
    /* 화면 배경. 2026-08-18 시안 캔버스 실측으로 #FFFBF5 → #FFFEFB 정정.
       Foundations 표(백로그 §4.1)에는 'Semantic/Background Base #FFFBF5' 로 적혀 있었는데
       실제 프레임 5개(04.리스트_상세 · 04.리스트_상세_강사 · 07.즐겨찾기 · 02.홈_채팅리스트 ·
       05.골프장_예약)의 면은 전부 rgb(255,254,251) 이었다. 카드는 같은 캡처에서 순백(255,255,255)
       으로 나오므로 렌더러 색보정이 아니라 값 차이다. 화면과 카드의 대비는 그림자가 만든다. */
    --bg-color: #FFFEFB;        /* Semantic/Background Base — 앱 기본 캔버스 */
    --card-bg: #FFFFFF;         /* Neutral/White — 카드 surface */
    --surface-card: #FFF6E8;    /* Semantic/Surface Card — 크림 카드(예약/모임/서비스) */
    --text-primary: #252B24;    /* Neutral/Ink 900 */
    --text-secondary: #596158;  /* Neutral/Stone 700 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 0 10px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 56px;
    --footer-height: 56px;
    /* 세이프에어리어 — standalone(홈화면 추가) PWA 에서만 0 이 아니다.
       전 CSS 는 env() 를 직접 쓰지 말고 이 두 변수만 쓴다(누락 방지 + 에뮬레이션 가능). */
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    /* bottomMenu 가 실제로 점유하는 높이. 하단 고정 바는 전부 이 위에 얹는다.
       --footer-height 만 쓰면 노치 기기에서 --sab 만큼 메뉴 뒤로 밀려 잘린다. */
    --footer-total: calc(var(--footer-height) + var(--sab));
    --app-shell-max-width: 430px;
    --app-shell-width: min(100vw, var(--app-shell-max-width));
    --app-shell-left: max(0px, calc((100vw - var(--app-shell-max-width)) / 2));
    --success: #4E9442;         /* State/Success — 워드마크 그린과 동일값 */
    --danger: #C95F55;          /* State/Danger */
    --warning: #D78B35;         /* State/Warning */
    --border-light: #DDE4DA;    /* Neutral/Line 200 — 기본 테두리 */
    --bg-secondary: #F5F2EC;    /* Semantic/Surface Muted — 비활성/보조 면 */
    --text-muted: #8B9288;      /* Neutral/Stone 500 — Placeholder/Disabled */
    /* 중립 회색 스케일 (Figma 2205:2485 언더라인 탭 실측 — 기존 Line/Stone 은 초록기가 섞여 있어
       탭 라벨·구분선에 쓰면 시안보다 진하고 탁하게 나온다. 그래서 별 축으로 둔다.) */
    --neutral-300: #D2D2D2;     /* Neutral/Gray 300 — 비활성 탭 라벨 */
    --neutral-100: #F1F0EF;     /* Neutral/Gray 100 — 탭 하단 구분선 */
    --primary-bg: #EAF4D8;      /* Semantic/Action Secondary — 칩/태그 배경 */
    --primary-border: var(--sprout); /* 칩/카드 라이트 그린 보더 */
    /* 메인 팝업 라이트톤 그라데이션 (구 팔레트 잔존 — 팝업 리스킨 시 정리, 백로그 §3) */
    --popup-gradient-start: #E8F5E9;
    --popup-gradient-mid:   #F1F8E9;
    --popup-gradient-end:   #FFFDE7;
    /* CTA 프라이머리 그라디언트 (전 버튼 통일 — 변경 시 여기 한 곳만) */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* ========================================
   2. 기본 리셋 및 공통
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 터치 반응성 향상 (300ms 지연 제거, 더블탭 줌 차단) */
a,
button,
[role="button"],
.touch-feedback,
input[type="button"],
input[type="submit"] {
    touch-action: manipulation;
}

html,
body {
    font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100%;
    -webkit-font-smoothing: antialiased;
}

/* iOS 홈 화면 추가(standalone PWA) 하단 공백 보정.
   html/body{height:100%} + viewport 크기 position:fixed 컨테이너(#splash-screen, .app-shell)
   조합에서 iOS가 레이아웃 뷰포트 높이를 top safe-area만큼 짧게 계산 → fixed bottom:0 이
   실제 화면 바닥에 닿지 못해 하단에 공백이 생김.
   문서 높이를 top inset만큼 늘려 fixed 컨테이너의 기준 높이를 전체 화면으로 강제한다.
   (iOS 18.0 WebKit 버그; Safari 26.1에서 OS 차원 수정. 모바일/PC 웹은 standalone이
   아니거나 env()=0 이라 영향 없음.) */
@media (display-mode: standalone) {
    html {
        min-height: calc(100% + var(--sat));
    }
}

/* 기본 스크롤바 숨김 (body에는 스크롤 없음) */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* 콘텐츠 영역 전용 스크롤바 (앱 스타일) */
.app-content::-webkit-scrollbar {
    width: 4px;
}

.app-content::-webkit-scrollbar-track {
    background: transparent;
}

.app-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.app-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ========================================
   3. 공통 유틸리티 클래스
   ======================================== */
/* 터치 피드백 */
.touch-feedback {
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.touch-feedback:active {
    transform: scale(0.97);
    opacity: 0.8;
}

/* 카드 공통 스타일 */
.app-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.app-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}



/* 섹션 타이틀 */
.section-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary-color);
}



/* ========================================
   4. 애니메이션
   ======================================== */
/* fadeInUp, pulse 키프레임은 cmmnStyle.css에 정의됨 */
.animate-fadeInUp {
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   5. 앱 셸 (구역 레이아웃)
   ======================================== */
/* 뷰포트에 고정된 셸 안에서 [콘텐츠 | 하단 탭]이 세로 flex 로 각자 구역을 점유한다.
   헤더는 콘텐츠 조각의 첫 in-flow sticky 요소로 자기 높이를 차지한다(아래 .app-header,
   cmmnStyle.css .page-header). 종전에는 헤더·콘텐츠·탭이 전부 position:fixed 오버레이라
   페이지가 padding/spacer 를 빠뜨리면 헤더·탭이 콘텐츠를 덮었다(2026-08-06 lessonChat ·
   myPage 결함) — 구역이 실제 공간을 점유하므로 그 결함 부류가 구조적으로 사라진다(2026-08-21).
   셸이 fixed 인 이유: 위 standalone 높이 보정이 fixed 기준으로 기기 검증돼 있어
   뷰포트 단위(dvh)로 갈아타지 않는다. 셸/body 조상에 transform·filter 금지(고정 기준 파괴). */
.app-shell {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--app-shell-left);
    width: var(--app-shell-width);
    max-width: var(--app-shell-max-width);
    display: flex;
    flex-direction: column;
}

/* 콘텐츠 구역 — 셸의 남는 공간 전부. 하단 탭과 좌표를 공유하지 않는다. */
.app-content {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-color);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

/* SPA 전환: 페이드 아웃 (현재 콘텐츠 숨기기) */
.app-content.spa-fade-out {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

/* SPA 전환: 콘텐츠 교체 중 완전 숨김 (렌더링 방지) */
.app-content.spa-loading {
    opacity: 0 !important;
    visibility: hidden;
}

/* SPA 전환: 페이드 인 (새 콘텐츠 표시) */
.app-content.spa-fade-in {
    visibility: visible;
    animation: spaFadeIn 0.2s ease-out forwards;
}

@keyframes spaFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   5-1. SPA 전환 로딩 인디케이터
   ======================================== */

/* 상단 프로그레스 바 */
.spa-progress-bar {
    position: fixed;
    /* 상태바 밴드 아래에서 시작한다 — top:0 이면 3px 바 전체가 노치 밴드에 삼켜져
       전환 중이라는 신호가 standalone 에서만 통째로 사라진다 (2026-08-15 W3 F-5 동류). */
    top: var(--sat);
    left: var(--app-shell-left);
    width: var(--app-shell-width);
    max-width: var(--app-shell-max-width);
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color, #FF6B35));
    z-index: 9999;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 0.2s;
}

.spa-progress-bar.active {
    opacity: 1;
    animation: spaProgressGrow 8s cubic-bezier(0.1, 0.5, 0.3, 1) forwards;
}

.spa-progress-bar.complete {
    transform: scaleX(1) !important;
    animation: none;
    transition: transform 0.15s ease-out, opacity 0.3s 0.15s;
    opacity: 0;
}

@keyframes spaProgressGrow {
    0% {
        transform: scaleX(0);
    }

    20% {
        transform: scaleX(0.3);
    }

    50% {
        transform: scaleX(0.6);
    }

    80% {
        transform: scaleX(0.8);
    }

    100% {
        transform: scaleX(0.9);
    }
}

/* 콘텐츠 영역 로딩 스피너 */
.spa-loader {
    display: none;
    position: fixed;
    top: 0;
    left: var(--app-shell-left);
    right: auto;
    bottom: var(--footer-total);
    width: var(--app-shell-width);
    max-width: var(--app-shell-max-width);
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    z-index: 99;
}

.spa-loader.active {
    display: flex;
}

.spa-loader-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spa-loader-spinner i {
    font-size: 28px;
    color: var(--primary-color);
    animation: spaSpinnerBounce 0.8s ease-in-out infinite;
}

.spa-loader-duck {
    width: 80px;
    height: 80px;
    background-image: url(/image/pkp_app/common/duck-run-sheet.png);
    background-repeat: no-repeat;
    background-size: 320px 80px;
    animation: spaDuckRun 0.7s steps(4) infinite;
}

.spa-loader-bar {
    position: relative;
    width: 96px;
    height: 6px;
    background: var(--primary-bg);
    border-radius: 999px;
    overflow: hidden;
}

.spa-loader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
    animation: spaLoaderBar 1.2s ease-in-out infinite;
}

@keyframes spaLoaderBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

@keyframes spaSpinnerBounce {

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

    50% {
        transform: translateY(-12px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes spaDuckRun {
    to { background-position-x: -320px; }
}

/* ========================================
   6. 상단 헤더 (appMain·myPage 홈형 헤더)
   ======================================== */
/* 콘텐츠 조각의 첫 직계 요소로 두는 in-flow sticky — 제 높이(56+sat)를 실제로 차지하므로
   페이지가 헤더 회피 padding 을 잡을 필요가 없다. 스크롤 시에만 본문이 밑으로 지나간다. */
.app-header {
    position: sticky;
    top: 0;
    height: calc(var(--header-height) + var(--sat));
    padding-top: var(--sat);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    max-width: 100%;
}












/* 우측 영역 */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    transition: background var(--transition-fast);
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--warning);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hdr-dot-blink 1.2s ease-in-out infinite;
}

/* ========================================
   7. 하단 탭 메뉴 (bottomMenu.jsp)
   ======================================== */
/* 하단 탭 구역 — 셸의 마지막 flex 아이템. 콘텐츠 구역과 겹치지 않는다.
   높이는 --footer-total(56 + 홈인디케이터 inset), 탭 행은 상단 56px 밴드에 정렬. */
.bottom-menu {
    flex: none;
    height: var(--footer-total);
    background: var(--card-bg);
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    z-index: 100;
    /* 디자인 2154:2584 — 상단 라운드 + 위로 뜨는 소프트 섀도 */
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -5px 12px rgba(0, 0, 0, 0.04);
}

.bottom-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1px, 0.3vh, 3px);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: clamp(11px, 3.4vw, 14px);
    font-weight: 700;
    position: relative;
    transition: all var(--transition-fast);
    padding: clamp(4px, 0.8vh, 8px) 2px;
    min-width: 0;
    height: var(--footer-height);
}

.bottom-tab-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.3;
    transition: all var(--transition-fast);
}

.bottom-tab-item .tab-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.bottom-tab-item .tab-ico svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* 2톤 아이콘 기본(비활성) — 디자인 47:423: secondary=--border-light, primary=--text-muted */
.tab-ico .ti-2 { fill: var(--border-light); transition: fill var(--transition-smooth); }
.tab-ico .ti-1 { fill: var(--text-muted); transition: fill var(--transition-smooth); }

/* 활성 — 아이콘 2톤 그린 + 그린 라벨 (칩 배경 없음) */
.bottom-tab-item.active {
    color: var(--primary-light);
}

.bottom-tab-item.active .ti-2 { fill: var(--sprout); }
.bottom-tab-item.active .ti-1 { fill: var(--primary-light); }

/* 홈 아이콘만 2톤 역순 (디자인: 하우스=leaf/--primary-light, 도어=sprout) */
.bottom-tab-item.active .tab-ico-home .ti-2 { fill: var(--primary-light); }
.bottom-tab-item.active .tab-ico-home .ti-1 { fill: var(--sprout); }

/* 강사 탭 배지 (예약 처리 대기·채팅 미읽음) — 아이콘 우상단 카운트 */
.bottom-tab-item .tab-badge {
    position: absolute;
    top: clamp(2px, 0.5vh, 5px);
    left: calc(50% + 6px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    overflow: visible;
}

/* 호버 상태 */
.bottom-tab-item:hover {
    color: var(--primary-light);
}


/* 리플 효과 */
.bottom-tab-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(86, 149, 68, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.bottom-tab-item:active::after {
    width: 60px;
    height: 60px;
}

/* ========================================
   9. 토스트 및 로딩
   ======================================== */
/* 토스트 스타일 */
.app-toast {
    position: fixed;
    bottom: calc(var(--footer-total) + 44px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(33, 33, 33, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all var(--transition-smooth);
}

.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.app-toast.success {
    background: var(--primary-color);
}

.app-toast.error {
    background: #E53935;
}




/* ========================================
   10. 알림 팝업
   ======================================== */
/* 알림 팝업 오버레이 */
.alarm-overlay {
    position: fixed;
    top: 0;
    left: var(--app-shell-left);
    width: var(--app-shell-width);
    max-width: var(--app-shell-max-width);
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.alarm-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 알림 팝업 */
.alarm-popup {
    position: fixed;
    /* 노치·다이나믹아일랜드 밴드 아래에서 연다. top:0 이면 팝업 제목과 닫기(✕) 버튼이
       상태바 밴드 안으로 들어가 눌리지 않는다 — 같은 파일 .app-header 만 --sat 를 반영하고
       이 팝업은 빠져 있었다(--sat:59px 주입 실측: 헤더 56→115px, 팝업은 top:0/height:189 그대로).
       .app-header 처럼 padding-top 을 주지 않는 이유는 배경이 흰 카드라 헤더 그라데이션 위에
       흰 띠가 생기기 때문이다 — 여기선 팝업 자체를 내린다 (2026-08-15 W3 F-5). */
    top: var(--sat);
    right: var(--app-shell-left);
    width: 100%;
    max-width: min(400px, var(--app-shell-width));
    max-height: calc(100vh - var(--sat) - 20px);
    background: var(--card-bg);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.alarm-popup.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* 알림 헤더 */
.alarm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.alarm-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.alarm-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.alarm-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 알림 바디 */
.alarm-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

/* 알림 리스트 */
.alarm-list {
    display: flex;
    flex-direction: column;
}

/* 알림 빈 상태 */
.alarm-empty {
    padding: 40px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 알림 아이템 */
.alarm-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition-fast);
    position: relative;
}

.alarm-item:hover {
    /* 부모 .alarm-popup 이 --card-bg(#FFFFFF)라 --bg-color(#FFFEFB)로는 탭 피드백이
       보이지 않는다 (2026-08-18 배경 토큰 순백화 이후 delta (0,1,4)). 보조면 토큰을 쓴다. */
    background: var(--bg-secondary);
}

.alarm-item.unread {
    background: rgba(46, 125, 50, 0.05);
}

.alarm-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* 알림 아이콘 */
.alarm-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.alarm-icon.schedule {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
}

.alarm-icon.notice {
    background: linear-gradient(135deg, #E53935, #FF5722);
}

.alarm-icon.comment {
    background: linear-gradient(135deg, #7B1FA2, #E040FB);
}

.alarm-icon.like {
    background: linear-gradient(135deg, #E91E63, #FF4081);
}

.alarm-icon.coupon {
    background: linear-gradient(135deg, #2E7D32, #66BB6A);
}

/* 알림 내용 */
.alarm-content {
    flex: 1;
    min-width: 0;
}

.alarm-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alarm-desc {
    font-size: 12px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.alarm-time {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 500;
}

.alarm-arrow {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ========================================
   11. 앱 Shell 내 fixed 공통 컴포넌트 보정
   ======================================== */
body .loading-overlay,
body .pkp-loading-overlay,
body .modal-overlay,
body .pkp-dialog-overlay,
body .bottom-booking-bar {
    left: var(--app-shell-left);
    right: auto;
    width: var(--app-shell-width);
    max-width: var(--app-shell-max-width);
}

body .floating-buttons {
    right: calc(var(--app-shell-left) + 20px);
}

/* ========================================
   9. 접근성 — 키보드 포커스 가시성 + 모션 감소
   ======================================== */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *:not([class*="spinner"]):not([class*="loader"]):not([class*="loading"]),
    *:not([class*="spinner"]):not([class*="loader"]):not([class*="loading"])::before,
    *:not([class*="spinner"]):not([class*="loader"]):not([class*="loading"])::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
