/* CSS 변수 정의 */
:root {
    --primary-color: #1e3a8a;
    --primary-hover: #1e40af;
    --bg-gray: #f5f5f5;
    --hover-bg: #f0f0f0;
    --item-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --danger-color: #ff4757;
    --success-color: #10b981;
    --warning-color: #ffc107;
    --border-radius: 8px;
    --border-radius-lg: 10px;
    --box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 4px 20px rgba(0,0,0,0.2);
    /* 은행 색상 */
    --bank-kb: #ffb800;
    --bank-shinhan: #0046ff;
    --bank-hana: #008485;
    --bank-woori: #0067b1;
    --bank-nh: #0072c6;
    --bank-kakao: #fee500;
    --bank-ibk: #0050b5;
    --bank-kbank: #652d90;
    --bank-toss: #0064ff;
    --bank-etc: #666;
    /* 사이트 색상 */
    --site-naver: #03c75a;
    --site-google: #4285f4;
    --site-kakao: #fee500;
    --site-facebook: #1877f2;
    --site-apple: #000;
    --site-x: #000;
    --site-etc: #666;

    /* 폰트 시스템 (2026-05-07 SUIT 도입)
       - body: SUIT 가변폰트 — 본문/UI 가독성·생산성 우선
       - heading: MaruBuri — 또박노트 타이틀 캐릭터 보존
       - shin: Zhi Mang Xing — 信 한자 서예체 */
    --font-body: 'SUIT Variable', 'SUIT', 'MaruBuri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'MaruBuri', 'SUIT Variable', 'SUIT', sans-serif;
    --font-shin: 'Zhi Mang Xing', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body) !important;
}

body {
    font-family: var(--font-body) !important;
    background-color: var(--bg-gray);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
}

.app {
    max-width: 960px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* 상단 헤더 - 최소화 */
.top-header {
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    flex-shrink: 0;
    height: 32px;
}

.top-header a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.top-header a:hover {
    opacity: 0.8;
}

/* 서예체 信 스타일 */
.shin-calligraphy {
    font-family: var(--font-shin) !important;
    font-size: 1rem;
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    margin: 0 0.1em;
    line-height: 1;
    vertical-align: middle;
    letter-spacing: 0;
    color: inherit !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.globe-icon {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.favorite-btn {
    background: none;
    border: none;
    color: white;
    padding: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    border-radius: 4px;
}

.favorite-btn:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

header {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

header h1,
.brand-title {
    font-family: var(--font-heading) !important;  /* MaruBuri — 캐릭터 보존 */
}

header h1 {
    font-size: 24px;
    margin-bottom: 2px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.date {
    font-size: 12px;
    opacity: 0.9;
}

/* 메인 카테고리 (1줄) - 컴팩트 */
.main-categories {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    background: #f0f4ff;
    border-bottom: 2px solid #d1d5db;
    position: sticky;
    top: 56px;
    z-index: 98;
    overflow-x: auto;
    flex-shrink: 0;
}

.main-category {
    background: white;
    border: 2px solid #b8d4ff;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    letter-spacing: -0.3px;
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.08);
}

.main-category:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(30, 58, 138, 0.15);
    border-color: #93bfff;
}

.main-category.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.3);
}

.main-category span.icon {
    font-size: 16px;
    font-style: normal;
}

/* 서브 카테고리 - 체크리스트용만 남김 */
.sub-categories {
    display: none;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
    flex-shrink: 0;
    position: sticky;
    top: 116px;
    z-index: 97;
}

.sub-categories.active {
    display: flex;
}

.sub-category {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 800;
    background: white;
    letter-spacing: -0.3px;
}

.sub-category:hover {
    background: var(--bg-gray);
}

.sub-category.active {
    background: #dbeafe;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

/* 콘텐츠 영역 - 하단 여백 개선 */
.content {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 60px;
    padding-bottom: 30px;
}

.content-section {
    display: none;
}

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

/* 할일 아이템 */
.todo-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 8px;
    margin-bottom: 8px;
    background: var(--item-bg);
    border-radius: 8px;
    transition: all 0.3s;
}

.todo-item:hover {
    background: #f0f0f0;
    transform: translateX(3px);
}

.todo-item.completed {
    /* opacity 제거 - 투명도 없앰 */
    /* background 제거 - 배경색 그대로 */
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    text-decoration-color: var(--text-muted);
    text-decoration-thickness: 2px;
    color: var(--text-muted); /* 완료된 항목은 회색으로 */
    opacity: 0.8; /* 살짝 투명도 추가 */
}

.todo-item.completed .postpone-btn,
.todo-item.completed .edit-btn {
    display: none !important;
}

/* 할일 색상 - 일간만 */
.todo-date {
    color: var(--primary-color);
}

.date-header {
    color: var(--primary-color);
}

/* 체크리스트 완료 상태 */
.check-item.completed {
    /* 투명도 없음 - 배경색 그대로 유지 */
}

.check-item.completed .check-text {
    text-decoration: line-through;
    text-decoration-color: var(--text-muted);
    text-decoration-thickness: 2px;
    color: var(--text-muted); /* 완료된 항목은 회색으로 */
    opacity: 0.8; /* 살짝 투명도 추가 */
}

/* 체크박스 스타일 */
.todo-item input[type="checkbox"],
.check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 3px solid var(--primary-color);
    border-radius: 4px;
    background: white;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-top: 2px;
}

.todo-item input[type="checkbox"]:hover,
.check-item input[type="checkbox"]:hover {
    border-color: #1e40af;
    box-shadow: 0 0 6px rgba(30, 58, 138, 0.5);
    transform: scale(1.1);
}

.todo-item input[type="checkbox"]:checked,
.check-item input[type="checkbox"]:checked {
    background: var(--text-muted);
    border-color: var(--text-muted);
}

@keyframes checkmark {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.todo-item input[type="checkbox"]:checked::after,
.check-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    animation: checkmark 0.3s ease;
}

.todo-item input[type="checkbox"]:focus,
.check-item input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.3);
}

.todo-date {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.todo-text {
    flex: 1;
    line-height: 1.4;
    word-break: break-word;
    transition: all 0.3s;
    font-size: 14px;
}

/* 날짜 그룹 */
.date-group {
    margin-bottom: 15px;
}

.date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    margin: 15px 0 8px;
    background: var(--bg-gray);
    border-radius: 6px;
    transition: all 0.3s;
    user-select: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.date-header:hover {
    background: #e8f1ff;
    transform: translateX(2px);
}

/* 오늘 강조 스타일 */
.date-header.current-highlight {
    background: #e8f1ff;
    border: 1px solid #b8d4ff;
}

/* 과거 날짜 스타일 */
.date-header.past {
    background: #f0f0f0;
    color: var(--text-muted);
}

.date-header.past:hover {
    background: #e8e8e8;
}

/* 미래 날짜 스타일 */
.date-header.future {
    background: #fafafa;
    color: var(--text-primary);
}

.date-header.future:hover {
    background: var(--bg-gray);
}

/* 오늘 할일 항목 배경 */
.todo-item.current {
    background: #f0f7ff;
}

.todo-item.current:hover {
    background: #e8f1ff;
}

/* 과거 할일 항목 배경 */
.todo-item.past {
    opacity: 0.7;
    background: var(--bg-gray);
}

.todo-item.past:hover {
    background: #eeeeee;
}

.todo-item.past .todo-text:not(.completed .todo-text) {
    color: var(--text-secondary);
}

/* 미래 할일 항목은 기본 스타일 유지 */

.date-todos {
    margin-left: 15px;
    margin-top: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 날짜 삭제 버튼 - 미니멀 휴지통 아이콘 */
.date-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.date-delete-btn svg {
    width: 16px;
    height: 16px;
    fill: #ff4757;
    transition: all 0.3s;
}

.date-delete-btn:hover {
    background: rgba(255, 71, 87, 0.1);
}

.date-delete-btn:hover svg {
    transform: scale(1.15);
    fill: #ff3838;
}

/* 날짜 수정 버튼 - 수정 아이콘 */
.date-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.date-edit-btn svg {
    width: 16px;
    height: 16px;
    fill: #3742fa;
    transition: all 0.3s;
}

.date-edit-btn:hover {
    background: rgba(55, 66, 250, 0.1);
}

.date-edit-btn:hover svg {
    transform: scale(1.15);
    fill: #2f3cf4;
}

/* 체크리스트 */
.checklist-container {
    background: var(--item-bg);
    border-radius: var(--border-radius);
    padding: 12px;
    margin-bottom: 12px;
}

.checklist-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-color);
    cursor: pointer;
    letter-spacing: -0.3px;
}

.checklist-items {
    display: none;
}

.checklist-items.active {
    display: block;
}

.check-item {
    display: flex;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.check-item:last-child {
    border-bottom: none;
}

/* 체크리스트 완료 상태 - opacity와 color 변경 */
.check-item.completed {
    /* 배경과 투명도 변경 없음 */
}

.check-item.completed .check-text {
    text-decoration: line-through;
    text-decoration-color: var(--text-muted);
    text-decoration-thickness: 2px;
    color: var(--text-muted); /* 완료된 항목은 회색으로 */
    opacity: 0.8; /* 살짝 투명도 추가 */
}

/* 완료된 체크리스트 항목의 수정 버튼 숨기기 */
.check-item.completed .edit-btn {
    display: none !important;
}

.check-text {
    flex: 1;
    font-size: 14px;
    transition: all 0.3s;
    color: var(--text-primary); /* 명시적으로 색상 지정 */
}

/* 노트 관련 스타일 */
.search-container {
    margin-bottom: 15px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.note-item {
    background: var(--item-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 100px;
}

.note-item:hover {
    background: var(--hover-bg);
    transform: translateX(3px);
    box-shadow: var(--box-shadow);
}

.note-item.pinned {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.pin-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #f39c12;
    font-size: 16px;
}

.note-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-primary);
    padding-right: 40px;
}

.note-preview {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

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

.note-item .copy-btn {
    position: absolute;
    bottom: 10px;
    right: 45px;
}

.note-menu-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 16px;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.note-menu-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* 계좌번호 아이템 */
.account-item {
    background: var(--item-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.account-item:hover {
    background: #f0f0f0;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.account-item.pinned {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.bank-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.account-info {
    flex: 1;
}

.bank-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.account-number {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.account-holder {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.account-memo {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.copy-btn {
    position: absolute;
    bottom: 10px;
    right: 45px;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    height: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 은행별 색상 */
.bank-kb { background: var(--bank-kb); }
.bank-shinhan { background: var(--bank-shinhan); }
.bank-hana { background: var(--bank-hana); }
.bank-woori { background: var(--bank-woori); }
.bank-nh { background: var(--bank-nh); }
.bank-kakao { background: var(--bank-kakao); color: var(--text-primary) !important; }
.bank-ibk { background: var(--bank-ibk); }
.bank-kbank { background: var(--bank-kbank); }
.bank-toss { background: var(--bank-toss); }
.bank-etc { background: var(--bank-etc); }

/* 은행 선택 버튼 */
.bank-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.bank-btn {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 13px;
}

.bank-btn:hover {
    background: var(--bg-gray);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bank-btn.active {
    background: #dbeafe;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* 커스텀 드롭다운 스타일 */
.custom-dropdown {
    position: relative;
}

.dropdown-list {
    position: absolute;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    z-index: 2001;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

.dropdown-list.show {
    max-height: 250px;
    overflow-y: auto;
    opacity: 1;
    display: block !important;
}

/* 드롭다운이 위로 나타나는 경우 */
.dropdown-list.dropup {
    bottom: 100%;
    margin-bottom: 5px;
}

/* 드롭다운이 아래로 나타나는 경우 */
.dropdown-list.dropdown {
    top: 100%;
    margin-top: 5px;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: #f0f4ff;
}

.dropdown-item.selected {
    background: #dbeafe;
    font-weight: 600;
}

/* 입력란에 포커스가 있을 때 */
.custom-dropdown input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* 브라우저 자동완성 비활성화 */
.custom-dropdown input::-webkit-calendar-picker-indicator,
.custom-dropdown input::-webkit-list-button {
    display: none !important;
}

/* 아이디 관리 스타일 */
.id-item {
    background: var(--item-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.id-item:hover {
    background: #f0f0f0;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.id-item.pinned {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.site-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.id-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.id-info {
    flex: 1;
}

.site-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.id-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.password-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.password-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.password-hidden {
    letter-spacing: 2px;
}

.toggle-password {
    font-size: 18px;
    cursor: pointer;
    user-select: none;
}

.id-memo {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 사이트별 색상 */
.site-naver { background: var(--site-naver); }
.site-google { background: var(--site-google); }
.site-kakao { background: var(--site-kakao); color: var(--text-primary) !important; }
.site-facebook { background: var(--site-facebook); }
.site-instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.site-apple { background: var(--site-apple); }
.site-x { background: var(--site-x); }
.site-etc { background: var(--site-etc); }

/* 노트 컨텍스트 메뉴 */
.context-menu {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 8px 0;
    z-index: 1000;
    display: none;
    min-width: 160px;
}

.context-menu.show {
    display: block;
}

.context-menu-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-menu-item:hover {
    background: #f0f0f0;
}

.context-menu-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* 공통 버튼 스타일 */
.btn-common {
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    padding: 4px 10px;
}

/* 삭제 버튼 */
.delete-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.delete-btn:hover {
    opacity: 1;
}

/* 미루기 버튼 */
.postpone-btn {
    background: none;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    margin-right: 8px;
    font-weight: 500;
}
.postpone-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    transform: scale(1.05);
}
.postpone-btn:active {
    transform: scale(0.95);
}

/* 수정 버튼 */
.edit-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    margin-right: 8px;
    font-weight: 500;
}
.edit-btn:hover {
    background: rgba(30, 58, 138, 0.1);
    transform: scale(1.05);
}
.edit-btn:active {
    transform: scale(0.95);
}

/* 플로팅 버튼 */
.fab {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.6);
}

/* 데스크탑에서 플로팅 버튼을 앱 컨테이너 안에 위치 */
@media (min-width: 961px) {
    .fab {
        right: calc(50% - 480px + 20px);
    }
}

/* 캘린더 모달 */
.calendar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.calendar-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.calendar-content {
    background: white;
    border-radius: 20px;
    padding: 20px 15px;
    padding-top: 55px; /* 상단 패딩 증가 */
    width: 90%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 5px;
    padding-right: 40px; /* X 버튼 공간 확보 */
    margin-top: 10px; /* 연도 선택 버튼과 간격 */
}

.calendar-header h3 {
    flex: 0 1 auto;
    text-align: center;
    font-size: 20px;
    color: var(--primary-color);
    margin: 0;
    padding: 0 10px;
}

.calendar-nav-btn {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.calendar-nav-btn:hover {
    background: var(--hover-bg);
}

.calendar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.calendar-close:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    margin-bottom: 8px;
    width: 100%;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 0;
    min-width: 0;
}

.calendar-weekdays div:first-child {
    color: #ef4444;
}

.calendar-weekdays div:last-child {
    color: #3b82f6;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
}

.calendar-day {
    aspect-ratio: 1/1;
    min-height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    font-size: 14px;
    padding: 6px 2px;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.calendar-day:hover {
    background: var(--hover-bg);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month {
    color: #ccc;
    background: #fafafa;
}

.calendar-day.today {
    background: #e8f1ff;
    border-color: var(--primary-color);
    font-weight: 700;
}

.calendar-day.sunday {
    color: #ef4444;
}

.calendar-day.saturday {
    color: #3b82f6;
}

.calendar-day.has-todos {
    font-weight: 600;
}

.calendar-day-number {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 4px;
    font-weight: inherit;
}

.todo-count {
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-top: auto; /* 아래쪽에 배치 */
}

/* 모바일에서 캘린더 날짜칸 더 크게 */
@media (max-width: 600px) {
    .calendar-content {
        padding: 15px 10px;
        padding-top: 50px; /* 모바일에서도 상단 패딩 */
        width: 95%;
    }
    
    .calendar-weekdays {
        font-size: 12px;
        gap: 1px;
        margin-bottom: 5px;
    }
    
    .calendar-weekdays div {
        padding: 3px 0;
        font-size: 12px;
    }
    
    .calendar-days {
        gap: 1px;
    }
    
    .calendar-day {
        min-height: 38px;
        padding: 5px 1px;
        border-radius: 4px;
    }
    
    .calendar-header {
        padding-right: 35px;
        margin-bottom: 15px;
    }
    
    .calendar-header h3 {
        font-size: 18px;
    }
    
    .calendar-nav-btn {
        padding: 5px 8px;
        font-size: 20px;
    }
    
    .calendar-day-number {
        font-size: 13px;
        margin-bottom: 2px;
    }
    
    .todo-count {
        font-size: 9px;
        padding: 1px 3px;
        min-width: 14px;
        height: 14px;
    }
}

/* 하단에 + 항목 추가 버튼 */
.calendar-add-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calendar-add-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* 하단 푸터 - 최소화 */
.bottom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.bottom-footer-content {
    max-width: 960px;
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    height: 32px;
}

.bottom-footer a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 위치 마커 아이콘 */
.location-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    position: relative;
    margin-right: 2px;
}

.location-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #ea4335;
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
}

.location-icon::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

.bottom-footer a:hover {
    text-decoration: underline;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

.modal-content h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 18px;
}

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

.input-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.input-group textarea {
    min-height: 200px;
    resize: vertical;
}

/* 체크리스트 입력 */
.checklist-input-container {
    margin-top: 8px;
}

.checklist-item-input {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.checklist-item-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
}

/* 할일 입력 컨테이너 */
.todo-input-container {
    margin-top: 8px;
}

.todo-item-input {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.todo-item-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
}

.todo-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.add-item-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.checklist-preview {
    background: var(--bg-gray);
    padding: 8px;
    border-radius: 6px;
    margin-top: 8px;
}

.preview-item {
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.preview-item:last-child {
    border-bottom: none;
}

/* 모달 버튼 */
.modal-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: flex-end;
}
.modal-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
#cancelBtn {
    background: var(--border-color);
    color: var(--text-secondary);
}
#saveBtn {
    background: var(--primary-color);
    color: white;
}

/* 노트 중요 표시 토글 */
.pin-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.pin-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.pin-toggle label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}
@keyframes floatUp {
    0% { opacity: 0; transform: translateY(10px); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-40px); }
}
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(0.9); }
}
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.2); }
}
@keyframes flashEffect {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes checkmark {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* 동기화 선택 모달 */
.sync-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    animation: fadeIn 0.3s;
}

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

.sync-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    animation: slideUp 0.3s;
    text-align: center;
}

.sync-modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 20px;
}

.sync-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.sync-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sync-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.sync-option-btn:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sync-option-btn.primary {
    background: #e8f1ff;
    border-color: var(--primary-color);
}

.sync-option-btn i {
    font-size: 24px;
    margin-bottom: 8px;
}

.sync-option-btn strong {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sync-option-btn small {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 동기화 상태 표시 개선 */
#syncStatus {
    background: #e8f1ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    position: relative;
}

#syncStatus.syncing {
    background: #fff3cd;
    color: #856404;
}

#syncStatus.synced {
    background: #d4edda;
    color: #155724;
}

.sync-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

/* 복사 성공 피드백 */
.copy-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 3000;
    animation: fadeInOut 1.5s;
}

.last-sync-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* PWA 설치 배너 */
.install-banner {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.5);
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 1001;
    animation: slideUp 0.5s ease;
    max-width: 90%;
    width: auto;
}

/* 공통 알림 모달 */
.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2001;
    animation: fadeIn 0.3s ease;
}

.alert-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.alert-content {
    background: white;
    border-radius: 20px;
    padding: 25px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideUp 0.3s ease;
}

.alert-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.alert-title {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.alert-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    white-space: pre-line;
}

.alert-section {
    margin-bottom: 20px;
}

.alert-option {
    padding: 10px;
    border-radius: 8px;
    margin: 8px 0;
}

.alert-option.primary {
    background: #e8f5e9;
    border: 1px solid #4caf50;
}

.alert-option strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.alert-option small {
    font-size: 12px;
    color: var(--text-secondary);
}

.alert-divider {
    color: var(--text-muted);
    font-size: 12px;
    margin: 10px 0;
}

.alert-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.alert-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.alert-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.alert-button.primary {
    background: #4caf50;
}

.alert-button.primary:hover {
    background: #45a049;
}

.alert-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.alert-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.alert-button.text {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px;
}

.alert-button.text:hover {
    color: var(--text-primary);
    box-shadow: none;
}

/* 홈 화면 추가 안내 모달 - 컴팩트 버전 */
.home-guide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.home-guide-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-guide-content {
    background: white;
    border-radius: 20px;
    padding: 25px;
    max-width: 400px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease;
}

.home-guide-content.compact {
    padding: 20px;
}

.guide-header {
    text-align: center;
    margin-bottom: 20px;
}

.guide-header.compact {
    margin-bottom: 15px;
}

.guide-header h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 700;
}

.guide-header p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 5px;
}

.guide-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.guide-close:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.guide-playstore {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.guide-playstore strong {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #2e7d32;
}

.playstore-button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.playstore-button:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.guide-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin: 15px 0 10px;
    position: relative;
}

.browser-section {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-gray);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.browser-section.compact {
    margin-bottom: 8px;
    padding: 8px 10px;
}

.browser-section h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.browser-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.samsung-icon {
    background: #1428A0;
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.chrome-icon {
    background: linear-gradient(45deg, #4285f4 25%, #34a853 25% 50%, #fbbc04 50% 75%, #ea4335 75%);
    border-radius: 50%;
    position: relative;
}

.chrome-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.safari-icon {
    background: linear-gradient(135deg, #5AC8FA 0%, #007AFF 50%, #34AADC 100%);
    border-radius: 50%;
    position: relative;
}

.safari-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.guide-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-steps.compact li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 2px 0;
}

.guide-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.guide-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--success-color);
    font-size: 13px;
    font-weight: 600;
}



.install-banner.show {
    display: flex;
}

.install-banner-text {
    font-size: 14px;
    font-weight: 500;
}

.install-banner-buttons {
    display: flex;
    gap: 10px;
}

.install-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.install-btn.later {
    background: transparent;
    color: white;
    border: 1px solid white;
}

/* iOS 설치 가이드 모달 */
.ios-install-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    padding: 20px;
}

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

.ios-install-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
}

.ios-install-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.ios-install-steps {
    text-align: left;
    margin: 20px 0;
}

.ios-install-steps li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.ios-install-steps .step-icon {
    font-size: 20px;
}

.ios-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* 설치 완료 팝업 */
.install-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #10b981;
    color: white;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    display: none;
    z-index: 3001;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.install-success.show {
    display: block;
}

/* 설치 감사 모달 */
.welcome-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3002;
    padding: 20px;
}

.welcome-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.welcome-content {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    padding: 40px;
    border-radius: 25px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.welcome-header {
    font-size: 48px;
    margin-bottom: 20px;
}

.welcome-title {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.welcome-message {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.welcome-features {
    background: rgba(30, 58, 138, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.welcome-features h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 10px;
}

.welcome-features ul {
    list-style: none;
    padding: 0;
}

.welcome-features li {
    padding: 5px 0;
    font-size: 14px;
    color: #6b7280;
}

.welcome-features li:before {
    content: "✅ ";
    margin-right: 5px;
}

.welcome-signature {
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
    margin-top: 20px;
}

.welcome-close-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.welcome-close-btn:hover {
    background: #1e40af;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.4);
}

/* 커스텀 확인 모달 */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    animation: fadeIn 0.2s;
}

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

.confirm-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    animation: slideUp 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.confirm-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.confirm-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.confirm-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.confirm-cancel {
    background: var(--border-color);
    color: var(--text-secondary);
}

.confirm-cancel:hover {
    background: #d0d0d0;
}

.confirm-ok {
    background: #ff4757;
    color: white;
}

.confirm-ok:hover {
    background: #ff3838;
}

.confirm-ok.primary {
    background: var(--primary-color);
}

.confirm-ok.primary:hover {
    background: #1e40af;
}

/* 이스터에그 애니메이션 */


/* 이스터에그 관련 스타일 */
#tapFeedback {
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.floating-heart {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.confetti-piece {
    border-radius: 50%;
}

@media (max-width: 600px) {
    .install-banner {
        bottom: 80px;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .install-banner-text {
        font-size: 12px;
    }
    
    .install-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .welcome-content {
        padding: 30px 20px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .welcome-message {
        font-size: 14px;
    }
}

/* 모바일 웹킷 브라우저 대응 */
@supports (-webkit-touch-callout: none) {
    .date-header {
        font-weight: 800 !important;
        -webkit-font-smoothing: antialiased;
        -webkit-text-stroke: 0.4px;
    }
    .sub-category {
        font-weight: 800 !important;
        -webkit-font-smoothing: antialiased;
        -webkit-text-stroke: 0.4px;
    }
    .main-category {
        font-weight: 800 !important;
        -webkit-font-smoothing: antialiased;
        -webkit-text-stroke: 0.4px;
    }
    .checklist-title {
        font-weight: 800 !important;
        -webkit-font-smoothing: antialiased;
        -webkit-text-stroke: 0.4px;
    }
}

/* 생일/기념일 스타일 */
.anniversary-item {
    background: var(--item-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s;
    position: relative;
    border-left: 4px solid transparent;
}

.anniversary-item:hover {
    background: #f0f0f0;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.anniversary-item.birthday {
    border-left-color: #ff69b4;
}

.anniversary-item.anniversary {
    border-left-color: #4169e1;
}

.anniversary-item.memorial {
    border-left-color: var(--text-secondary);
}

.anniversary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.anniversary-icon {
    font-size: 24px;
}

.anniversary-info {
    flex: 1;
}

.anniversary-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.anniversary-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.anniversary-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.anniversary-dday {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 15px;
    background: #e8f1ff;
    color: var(--primary-color);
}

.anniversary-dday.today {
    background: #ff69b4;
    color: white;
    animation: pulse 2s infinite;
}

.anniversary-dday.past {
    background: #f0f0f0;
    color: var(--text-muted);
}

/* 연도 선택 모달 */
.year-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.year-btn {
    padding: 10px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.year-btn:hover {
    background: #e8f1ff;
    border-color: var(--primary-color);
}

.year-btn.selected {
    background: var(--primary-color);
    color: white;
}

/* 타입 선택 */
.type-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.type-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.type-btn:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
}

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

.type-btn .icon {
    font-size: 28px;
    display: block;
    margin-bottom: 5px;
}

.type-btn .label {
    font-size: 14px;
    font-weight: 600;
}

/* 음력 토글 */
.lunar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.lunar-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lunar-toggle label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 연도 선택 버튼 스타일 */
.year-select-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e8f1ff;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.year-select-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 다크모드 강제 적용 클래스 */
body.dark-mode { background-color: #1a1a1a !important; }
body.dark-mode .app { background: #2a2a2a !important; color: #e0e0e0 !important; }
body.dark-mode .main-categories { background: #333 !important; }
body.dark-mode .main-category { background: #2a2a2a !important; border-color: #555 !important; color: white !important; }
body.dark-mode .main-category:hover { background: #404040 !important; }
body.dark-mode .main-category.active { background: var(--primary-color) !important; }
body.dark-mode .todo-item, 
body.dark-mode .checklist-container, 
body.dark-mode .note-item, 
body.dark-mode .account-item, 
body.dark-mode .id-item, 
body.dark-mode .anniversary-item { 
    background: #333 !important; 
}
body.dark-mode .date-group { background: transparent !important; }
body.dark-mode .date-todos { background: transparent !important; }
body.dark-mode .todo-item.current { background: #3a3a3a !important; }
body.dark-mode .todo-item.past { background: #2d2d2d !important; opacity: 1; }
body.dark-mode .modal-content { background: #2a2a2a !important; color: #e0e0e0 !important; }
body.dark-mode input, 
body.dark-mode textarea { background: #333 !important; color: #e0e0e0 !important; border-color: #555 !important; }
body.dark-mode .date-header { background: #333 !important; font-weight: 700; color: #e0e0e0 !important; }
body.dark-mode .date-header.current-highlight { background: #3a4a5a !important; border-color: #4a5a6a !important; }
body.dark-mode .date-header.past { background: #2d2d2d !important; color: #999 !important; }
body.dark-mode .date-header.future { background: #373737 !important; color: #e0e0e0 !important; }
body.dark-mode .date-header:hover { background: #404040 !important; }
body.dark-mode .date-delete-btn:hover { background: rgba(255, 71, 87, 0.2) !important; }
body.dark-mode .date-edit-btn:hover { background: rgba(55, 66, 250, 0.2) !important; }
body.dark-mode .todo-item input[type="checkbox"]:not(:checked),
body.dark-mode .check-item input[type="checkbox"]:not(:checked) { 
    background: #2a2a2a !important; 
    border-color: #1e3a8a !important;
}
body.dark-mode .context-menu { background: #333 !important; }
body.dark-mode .context-menu-item:hover { background: #404040 !important; }
body.dark-mode .search-input { background: #333 !important; color: #e0e0e0 !important; border-color: #555 !important; }
body.dark-mode .bank-btn { background: #333 !important; border-color: #555 !important; color: #e0e0e0 !important; }
body.dark-mode .bank-btn:hover { background: #404040 !important; }
body.dark-mode .sub-categories { background: #333 !important; }
body.dark-mode .sub-category { background: #2a2a2a !important; border-color: #555 !important; color: #e0e0e0 !important; }
body.dark-mode .sub-category:hover { background: #404040 !important; }
body.dark-mode .sub-category.active { background: #4a5568 !important; border-color: #1e3a8a !important; }
body.dark-mode .dropdown-list { background: #333 !important; border-color: #555 !important; }
body.dark-mode .dropdown-item { color: #e0e0e0 !important; border-bottom-color: #444 !important; }
body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item.active { background: #404040 !important; }
body.dark-mode .dropdown-item.selected { background: #4a5568 !important; }
body.dark-mode .postpone-btn { 
    border-color: #ff6b6b !important; 
    color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
}
body.dark-mode .postpone-btn:hover { background: rgba(255, 107, 107, 0.25) !important; }
body.dark-mode .edit-btn {
    border-color: #4a9eff !important;
    color: #4a9eff !important;
    background: rgba(74, 158, 255, 0.1) !important;
}
body.dark-mode .edit-btn:hover { background: rgba(74, 158, 255, 0.25) !important; }
body.dark-mode .delete-btn { color: #ff6b6b !important; opacity: 0.8; }
body.dark-mode .delete-btn:hover { opacity: 1; }
body.dark-mode .sync-modal-content { background: #2a2a2a !important; color: #e0e0e0 !important; }
body.dark-mode .sync-option-btn { background: #333 !important; border-color: #555 !important; }
body.dark-mode .sync-option-btn:hover { background: #404040 !important; border-color: #1e3a8a !important; }
body.dark-mode .sync-option-btn.primary { background: #3a4a5a !important; }
body.dark-mode .todo-text:not(.completed .todo-text),
body.dark-mode .check-text:not(.completed .check-text) { color: #e0e0e0 !important; }
body.dark-mode .todo-item.completed .todo-text,
body.dark-mode .check-item.completed .check-text { color: #999 !important; }
body.dark-mode .note-title { color: #e0e0e0 !important; }
body.dark-mode .note-preview { color: #bbb !important; }
body.dark-mode .account-number { color: #e0e0e0 !important; }
body.dark-mode .bank-name { color: #bbb !important; }
body.dark-mode .site-name { color: #e0e0e0 !important; }
body.dark-mode .id-text { color: #bbb !important; }
body.dark-mode .anniversary-title { color: #e0e0e0 !important; }
body.dark-mode .anniversary-date { color: #bbb !important; }
body.dark-mode .checklist-container { background: #333 !important; }
body.dark-mode .add-item-btn { background: #4a5568 !important; color: #e0e0e0 !important; border: 1px solid #5a6578 !important; }
body.dark-mode .add-item-btn:hover { background: #5a6578 !important; }
body.dark-mode .top-header { background: #1e293b !important; }
body.dark-mode header { background: #1e293b !important; }
body.dark-mode .bottom-footer-content { background: #1e293b !important; }
body.dark-mode .modal { background: rgba(0,0,0,0.7) !important; }
body.dark-mode .empty-state { color: #999 !important; }
body.dark-mode .checklist-title { color: #e0e0e0 !important; }
body.dark-mode .fab { background: #4a5568 !important; }
body.dark-mode .fab:hover { background: #5a6578 !important; }
body.dark-mode .calendar-content { background: #2a2a2a !important; }
body.dark-mode .calendar-header h3 { 
    color: #e0e0e0 !important; 
}
body.dark-mode .calendar-nav-btn { 
    color: #e0e0e0 !important; 
    background: transparent !important;
}
body.dark-mode .calendar-nav-btn:hover { 
    background: #404040 !important; 
}
body.dark-mode .calendar-close { 
    color: #bbb !important; 
}
body.dark-mode .calendar-close:hover { 
    background: #404040 !important;
    color: #e0e0e0 !important;
}
body.dark-mode .calendar-weekdays div { color: #bbb !important; }
body.dark-mode .calendar-weekdays div:first-child { color: #ff6b6b !important; }
body.dark-mode .calendar-weekdays div:last-child { color: #4a9eff !important; }
body.dark-mode .calendar-day { background: #333 !important; border-color: #555 !important; color: #e0e0e0 !important; }
body.dark-mode .calendar-day:hover { background: #404040 !important; }
body.dark-mode .calendar-day.other-month { background: #2a2a2a !important; color: #666 !important; }
body.dark-mode .calendar-day.today { background: #3a4a5a !important; }
body.dark-mode .calendar-add-btn { 
    background: #4a5568 !important; 
    color: #e0e0e0 !important;
}
body.dark-mode .calendar-add-btn:hover { 
    background: #5a6578 !important; 
}
body.dark-mode .year-select-btn { background: #3a4a5a !important; border-color: #4a5a6a !important; color: #e0e0e0 !important; }
body.dark-mode .year-select-btn:hover { background: #4a5a6a !important; }

body.dark-mode .note-menu-btn,
body.dark-mode .account-item .note-menu-btn,
body.dark-mode .id-item .note-menu-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #e0e0e0 !important;
}
body.dark-mode .note-menu-btn:hover,
body.dark-mode .account-item .note-menu-btn:hover,
body.dark-mode .id-item .note-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}
body.dark-mode .copy-btn {
    background: rgba(74, 158, 255, 0.1) !important;
    color: #4a9eff !important;
    border-color: #4a9eff !important;
}
body.dark-mode .copy-btn:hover {
    background: rgba(74, 158, 255, 0.25) !important;
}
body.dark-mode .copy-btn.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
}
body.dark-mode .search-input::placeholder {
    color: #888 !important;
}
body.dark-mode .note-date,
body.dark-mode .account-memo,
body.dark-mode .id-memo,
body.dark-mode .anniversary-count {
    color: #999 !important;
}
body.dark-mode .note-item.pinned,
body.dark-mode .account-item.pinned,
body.dark-mode .id-item.pinned {
    background: #3d3a2a !important;
    border-color: #665c3a !important;
}
body.dark-mode .pin-indicator {
    color: #f39c12 !important;
}
body.dark-mode .password-text {
    color: #bbb !important;
}
body.dark-mode .toggle-password {
    color: #e0e0e0 !important;
    cursor: pointer;
}
body.dark-mode .toggle-password:hover {
    color: #4a9eff !important;
}
body.dark-mode .confirm-content {
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
}
body.dark-mode .confirm-title {
    color: #e0e0e0 !important;
}
body.dark-mode .confirm-message {
    color: #bbb !important;
}
body.dark-mode .confirm-cancel {
    background: #444 !important;
    color: #e0e0e0 !important;
}
body.dark-mode .confirm-cancel:hover {
    background: #555 !important;
}

/* 반응형 */
@media (max-width: 600px) {
    .app { box-shadow: none; }
    .fab { bottom: 60px; right: 15px; }
    .main-category { 
        font-size: 14px; 
        padding: 8px 12px;
        font-weight: 800 !important;
    }
    .main-category span.icon { font-size: 16px; }
    .top-header { font-size: 11px; padding: 6px 10px; }
    .bottom-footer { font-size: 10px; }
    .bank-selector { grid-template-columns: repeat(3, 1fr); }
    .content { 
        margin-bottom: 70px;
        padding-bottom: 40px;
    }
    .date-header {
        font-weight: 800 !important;
        -webkit-text-stroke: 0.3px;
    }
    .sub-category {
        font-weight: 800 !important;
        -webkit-text-stroke: 0.3px;
    }
    .checklist-title {
        font-weight: 800 !important;
        -webkit-text-stroke: 0.3px;
    }
    /* 모바일에서 할일/체크리스트 텍스트 크기 - 14px로 통일 */
    .todo-text {
        font-size: 14px;
        line-height: 1.5;
    }
    .check-text {
        font-size: 14px;
        line-height: 1.5;
    }
    /* 모바일에서 메모 텍스트 크기 조정 */
    .note-title {
        font-size: 16px;
        font-weight: 800;
    }
    .note-preview {
        font-size: 14px;
        line-height: 1.5;
    }
    /* 모바일 드롭다운 개선 */
    .dropdown-list {
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        border-width: 2px;
        max-height: 300px;
    }
    .dropdown-item {
        padding: 14px 18px;
        font-size: 16px;
        min-height: 50px;
    }
    /* 드롭다운이 위로 나타날 때 더 많은 여백 */
    .dropdown-list.dropup {
        margin-bottom: 10px;
    }
}

/* ─── 공지 토스트 배너 ─── */
.notice-banner {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 420px;
}

.notice-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.notice-banner.hide {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.notice-banner-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.notice-banner-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notice-banner-text {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-banner-arrow {
    font-size: 12px;
    opacity: 0.8;
    flex-shrink: 0;
    white-space: nowrap;
}

.notice-banner-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px -4px 0;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.notice-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 공지 모달 확장 스타일 */
.notice-modal-content {
    max-width: 340px;
}

.notice-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notice-modal-badge {
    background: var(--danger-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.notice-modal-date {
    font-size: 12px;
    color: var(--text-muted);
}

.notice-modal-message {
    text-align: left !important;
    line-height: 1.8 !important;
}

/* 다크모드 공지 배너 */
body.dark-mode .notice-banner-inner {
    background: #2563eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .notice-modal-date {
    color: #999;
}

/* 접근성: 모션 감소 설정 대응 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
