@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Nanum+Pen+Script&display=swap');

:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-soft: #eef2ff;
    --primary-dark: #3730a3;
    --success: #10b981;
    --success-soft: #ecfdf5;
    --warning: #f59e0b;
    --warning-soft: #fffbeb;
    --danger: #ef4444;
    --danger-soft: #fef2f2;
    --bg-app: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-active: #ffffff;
    --sidebar-active-bg: #1e293b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow: hidden;
    /* App feel */
    height: 100vh;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: auto;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border-right: 1px solid #1e293b;
}

.sidebar-main {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0;
    /* Reduced top padding */
    border-right: 1px solid #1e293b;
}

.sidebar-sub {
    width: 300px;
    display: flex;
    flex-direction: column;
    background-color: #0c1222;
}

.sidebar-sub-header {
    padding: 1.5rem;
    border-bottom: 1px solid #1e293b;
}

.sidebar-sub-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.sidebar-event-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.sidebar-event-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    background-color: #1e293b40;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.sidebar-event-item:hover {
    background-color: #1e293b;
    border-color: var(--primary-light);
}

.sidebar-event-item.past {
    opacity: 0.5;
    background-color: transparent;
    border: 1px dashed #1e293b;
}

.sidebar-event-item.active {
    background-color: #f1f5f9;
    /* 상세보기 배경색과 완전 일치 */
    position: relative;
    border-radius: 20px 0 0 20px;
    margin-right: -1rem;
    padding-right: 2rem;
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.05);
    /* 왼쪽 그림자만 유지 */
    border: none;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(2px);
    /* 오른쪽 테두리를 확실히 덮도록 2px 이동 */
    width: calc(100% + 1rem + 2px);
    /* 테두리를 가리기 위해 너비 확장 */
}

/* 상단 역곡선 (Apple Style Inset) */
.sidebar-event-item.active::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -1px;
    /* 틈새를 막기 위해 미세 조정 */
    width: 20px;
    height: 20px;
    background: transparent;
    border-bottom-right-radius: 20px;
    box-shadow: 10px 10px 0 10px #f1f5f9;
    pointer-events: none;
}

/* 하단 역곡선 (Apple Style Inset) */
.sidebar-event-item.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -1px;
    /* 틈새를 막기 위해 미세 조정 */
    width: 20px;
    height: 20px;
    background: transparent;
    border-top-right-radius: 20px;
    box-shadow: 10px -10px 0 10px #f1f5f9;
    pointer-events: none;
}

.sidebar-event-item.active .event-title {
    color: var(--text-main) !important;
}

.sidebar-event-item.active .event-date {
    color: var(--primary) !important;
}

.sidebar-event-item.active .dots-btn {
    color: var(--text-muted) !important;
}

.sidebar-event-item.active .event-date,
.sidebar-event-item.active .event-title {
    color: white;
}

.sidebar-event-item .event-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.sidebar-event-item .event-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-event-item .event-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-top: 0.5rem;
}

/* Action Menu Styles */
.sidebar-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.25rem;
    position: relative;
}

.action-menu-container {
    position: relative;
    z-index: 20;
    min-width: 24px;
    height: 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dots-btn {
    background: transparent;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.6;
}

.sidebar-event-item:hover .dots-btn,
.sidebar-event-item.active .dots-btn {
    opacity: 1;
}

.sidebar-event-item.active .dots-btn {
    color: white;
}

.dots-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dots-btn i,
.dots-btn svg {
    width: 14px !important;
    height: 14px !important;
}

.action-menu-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    display: none;
    flex-direction: column;
    padding: 0.4rem;
    z-index: 100;
    margin-top: 4px;
    border: 1px solid var(--border);
    animation: fadeIn 0.15s ease;
}

.action-menu-popup.show {
    display: flex;
}

.action-menu-popup button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 6px;
    text-align: left;
    transition: all 0.2s;
}

.action-menu-popup button:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
}

.action-menu-popup button i {
    width: 14px !important;
    height: 14px !important;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--primary);
    border-radius: 12px;
    color: white;
    margin-bottom: 2rem;
}

.logo i,
.logo svg {
    width: 24px !important;
    height: 24px !important;
}

.logo span {
    display: none;
}

.sidebar-header-info {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.sidebar-header-info h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.sidebar-header-info .status-summary {
    display: flex;
    gap: 0.5rem;
}

.sidebar-header-info .status-badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
}

.sidebar-header-info .status-badge.progress {
    background-color: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.sidebar-header-info .status-badge.completed {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--sidebar-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item i,
.nav-item svg {
    width: 20px !important;
    height: 20px !important;
}

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

.nav-item.active {
    background-color: transparent !important;
    color: var(--primary-light) !important;
    box-shadow: none !important;
    border: none !important;
}

.sidebar-actions-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Reduced gap */
    margin-bottom: 1.25rem;
    /* Reduced bottom margin */
}

.sidebar-add-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    color: var(--sidebar-text) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none !important;
}

.sidebar-add-btn:hover {
    color: var(--sidebar-active) !important;
}

.sidebar-add-btn i,
.sidebar-add-btn svg {
    width: 20px !important;
    height: 20px !important;
}

.sidebar-add-btn:hover {
    color: var(--primary-light) !important;
}

.sidebar-add-btn:hover i,
.sidebar-add-btn:hover svg {
    stroke: var(--primary-light) !important;
}

/* --- Expandable Search --- */
.search-container {
    position: relative;
    width: 32px;
    height: 32px;
    z-index: 100;
    background: transparent;
    /* Changed from #1e293b to transparent */
    border-radius: 8px;
}

.search-inner {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 32px;
    height: 32px;
    background: #1e293b;
    /* Consistent dark background */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    overflow: hidden;
    will-change: width, transform;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.search-container.expanded .search-inner {
    width: 260px;
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.15);
}

.sidebar-search-input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.85rem;
    padding: 0;
    outline: none;
    opacity: 0;
    min-width: 0;
    transform: translateX(-5px);
    transition: opacity 0.2s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-container.expanded .sidebar-search-input {
    opacity: 1;
    padding: 0 12px 0 4px;
    transform: translateX(0);
}

.search-container #searchBtn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
}

.month-selector-title {
    font-size: 0.7rem;
    color: var(--sidebar-text);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    padding-left: 0.5rem;
}

.month-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.month-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.month-btn:hover {
    border-color: var(--primary-light);
    color: white;
}

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

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.header {
    padding: 1rem 2rem;
    background-color: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.notice-highlights {
    display: flex;
    gap: 1.2rem;
    flex-grow: 1;
}

.notice-card {
    flex: 1;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.notice-card:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.notice-card::before {
    content: 'NOTICE';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 900;
    color: var(--primary-light);
    opacity: 0.5;
}

.notice-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.notice-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Event Type Tags */
.type-find {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #1e40af;
}

/* 찾음 */
.type-exec {
    background-color: #dcfce7;
    color: #166534;
    border-left: 3px solid #166534;
}

/* 시행사 */
.type-reg {
    background-color: #f3e8ff;
    color: #6b21a8;
    border-left: 3px solid #6b21a8;
}

/* 정기 */
.type-plan {
    background-color: #ffedd5;
    color: #9a3412;
    border-left: 3px solid #9a3412;
}

/* 기획 */
.type-ext {
    background-color: #f1f5f9;
    color: #475569;
    border-left: 3px solid #475569;
}

/* 외부 */

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.status-summary {
    display: flex;
    gap: 0.75rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.progress {
    background-color: #eff6ff;
    color: #2563eb;
}

.status-badge.completed {
    background-color: #ecfdf5;
    color: #10b981;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Sidebar Profile & Add Button refinements */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-profile {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    color: white;
}

.user-profile img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f1f5f9;
}

/* View Container */
.view-container {
    flex-grow: 1;
    padding: 1.5rem;
    /* 기본 여백 줄임 */
    overflow-y: auto;
}

.main-content.detail-mode .view-container {
    padding: 0;
    /* 상세 모드에서는 여백 제거 */
}

.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

/* Detail Mode: Hide header and use full height */
.main-content.detail-mode .header {
    display: none;
}

.main-content.detail-mode .view-container {
    padding: 0;
    max-width: none;
    width: 100%;
    margin: 0;
}

#eventDetailView {
    background-color: #f1f5f9;
    /* 배경색 통일 */
}

#eventDetailView.active {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Full Detail Form UI - Premium Desk */
.detail-top-bar {
    display: none;
    /* Removed as requested */
}

.detail-form-scroll.improved-spacing {
    padding-top: 2rem;
    height: 100vh;
}

.detail-section-card {
    position: relative;
    /* For inline map container */
    background: white;
    padding: 1.15rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.detail-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-danger {
    background-color: var(--danger-soft);
    color: var(--danger);
    border: 1px solid transparent;
}

.btn-danger:hover {
    background-color: var(--danger);
    color: white;
}

.detail-form-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8fafc;
}

.detail-layout {
    width: 100%;
    margin: 0;
}

.detail-form-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3단 기둥 */
    gap: 1.25rem;
    width: 100%;
}

.detail-section-card {
    position: relative;
    /* For inline map container */
    background: white;
    padding: 1.15rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: fit-content;
}

.detail-section-card.full-width {
    grid-column: span 3;
    margin-top: 0.5rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

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

.field-group {
    margin-bottom: 0.75rem;
}

.field-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.select-btn {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

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

.select-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.etc-input-wrapper {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
    animation: fadeIn 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

/* 관리자 모드 전용 스타일 */
.form-input:disabled {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* --- Slim Login Line (Top) --- */
.login-line-btn {
    width: 32px;
    height: 32px;
    /* Large Hit Area */
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1.5rem;
    /* Reduced bottom margin from 2.5rem */
    position: relative;
    background: transparent;
}

/* The actual 1px line */
.login-line-btn::before {
    content: '';
    width: 100%;
    height: 1px;
    background-color: #475569;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.login-line-btn:hover::before {
    background-color: var(--primary-light);
    opacity: 1;
    box-shadow: 0 0 8px var(--primary-light);
}

/* ADMIN ACTIVE: Only the line breaths */
.login-line-btn.admin-active::before {
    background-color: #ffffff;
    opacity: 1;
    animation: breathingLine 3s ease-in-out infinite;
}

@keyframes breathingLine {

    0%,
    100% {
        opacity: 0.3;
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

.guest-only-overlay {
    position: relative;
}

.guest-only-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: not-allowed;
}

.manager-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.responsive-3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {

    .manager-grid,
    .responsive-3-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Status Selector Styles */
.status-selector {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.4rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.status-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    color: var(--text-muted);
}

/* 활성화 상태별 고유 스타일 - 더 선명한 원색 계열 */
.status-btn.active.협의중 {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.status-btn.active.확정 {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.status-btn.active.변경 {
    background: #0ea5e9;
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.status-btn.active.취소 {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

/* 활성화된 버튼이 있을 때 비활성 버튼 시인성 개선 */
.status-selector:has(.status-btn.active) .status-btn:not(.active) {
    opacity: 0.6;
    filter: grayscale(0.5);
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.03);
    /* 약간의 배경색을 주어 윤곽선 확보 */
}

/* Checklist Sidebar Styles */
.checklist-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checklist-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.checklist-progress-header {
    margin-bottom: 1.5rem;
}

.checklist-progress-header h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.progress-bar-container {
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #34d399);
    transition: width 0.4s ease;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.check-item:hover {
    background: white;
    border-color: var(--primary-light);
}

.check-item.completed {
    background: var(--success-soft);
    border-color: #d1fae5;
}

.check-item.completed .item-label {
    text-decoration: line-through;
    color: #059669;
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.check-item.completed .check-icon {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.supervisor-confirm-area {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.confirm-toggle-btn {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border);
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.confirm-toggle-btn.active {
    background: var(--success-soft);
    border-color: var(--success);
    color: var(--success);
}

.status-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

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

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

/* Calendar Grid */
.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.5rem;
}

.calendar-grid-header div {
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    /* 모든 행의 높이를 동일하게 유지 */
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.calendar-day {
    background-color: white;
    min-height: 140px;
    padding: 8px !important;
    position: relative;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* 텍스트 생략 기능을 위해 필요 */
}

.calendar-day:hover {
    background-color: #f8fafc;
}

.day-number {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.calendar-day.today .day-number {
    color: var(--primary);
    position: relative;
}

.calendar-day.today .day-number::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 12px;
    height: 2px;
    background-color: var(--primary);
}

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

.event-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-chip {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: transform 0.1s;
}

.event-chip:hover {
    transform: scale(1.02);
}

.type-찾음 {
    background-color: #e0e7ff;
    color: #4338ca;
    border-left: 3px solid #4338ca;
}

.type-공연 {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 3px solid #92400e;
}

.type-기타 {
    background-color: #f1f5f9;
    color: #475569;
    border-left: 3px solid #475569;
}

/* List View */
.list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
}

.search-box input {
    padding: 0.6rem 1rem 0.6rem 2.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    width: 300px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 80px 1fr 180px 120px 100px;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.event-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.event-card .date-box {
    text-align: center;
}

.event-card .month {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.event-card .day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.event-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.event-info .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

.assignees-stack {
    display: flex;
    align-items: center;
}

.assignee-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    background: #f1f5f9;
}

.assignee-avatar:first-child {
    margin-left: 0;
}

.progress-track {
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--success);
    width: 0%;
    transition: width 0.5s ease;
}

.confirm-status {
    text-align: right;
}

.confirm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.confirm-badge.done {
    color: var(--success);
}

.confirm-badge.pending {
    color: var(--text-muted);
}

/* Detail Panel */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

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

.detail-panel {
    position: fixed;
    right: -500px;
    top: 0;
    width: 480px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 101;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.detail-panel.active {
    right: 0;
}

.detail-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.detail-body {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    color: var(--text-main);
    font-weight: 500;
}

.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.check-item:hover {
    background: #f1f5f9;
}

.check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.check-item.completed {
    opacity: 0.7;
}

.check-item.completed .item-label {
    text-decoration: line-through;
}

.supervisor-confirm-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #eff6ff;
    border: 1px dashed #3b82f6;
    border-radius: var(--radius-md);
    text-align: center;
}

.supervisor-confirm-box.confirmed {
    background: #ecfdf5;
    border-color: #10b981;
}


/* Full Page Detail Styles */
.full-page-detail {
    width: 100%;
    min-height: 100%;
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 100;
}

/* Mobile Detail Header */
.mobile-detail-header {
    display: none;
    padding: 1.25rem 1.5rem;
    background: white;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 110;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-detail-header .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-app);
    color: var(--text-main);
}

.mobile-detail-header .detail-title-text {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-dark);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mobile-detail-header {
        display: flex;
    }

    /* 상세 정보를 상단바 바로 아래부터 띄우기 위해 */
    .view.active#eventDetailView {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 2005;
        /* 사이드바(2000)보다 높게 */
        overflow-y: auto;
    }

    .full-page-detail {
        min-height: 100vh;
        padding-bottom: 5rem;
    }
}

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

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

.detail-top-nav {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.back-btn:hover {
    color: var(--primary);
}

.detail-main-info {
    padding: 2.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

.detail-content-left {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.detail-content-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 2.5rem;
    border-left: 1px solid var(--border);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.status-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    text-align: center;
}

.status-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-item .value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Mobile warning - this app is designed for desktop */
@media (max-width: 1000px) {
    .sidebar {
        width: 80px;
        padding: 1rem 0.5rem;
    }

    .sidebar .logo span,
    .sidebar .nav-item span,
    .sidebar .month-selector-title {
        display: none;
    }

    .sidebar .logo {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .sidebar .nav-item {
        justify-content: center;
        padding: 1rem;
    }

    .month-list {
        display: none;
    }
}

/* --- Yearly Calendar View --- */
.yearly-calendar-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0;
}

@media (max-width: 1300px) {
    .yearly-calendar-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .yearly-calendar-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .yearly-calendar-container {
        grid-template-columns: 1fr;
    }
}

.mini-month {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-month:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.mini-month-title {
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--text-main);
    font-size: 1rem;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 0.75rem;
    text-align: center;
}

.mini-day-header {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    position: relative;
    font-weight: 500;
    color: var(--text-main);
}

.mini-day.has-event {
    background-color: #f1f5f9;
    color: var(--primary-dark);
    font-weight: 800;
}

.mini-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary);
}

.mini-day.today {
    background-color: var(--primary) !important;
    color: white !important;
}

/* Mobile Calendar Navigation (Field Manager Focus) */
.calendar-view-header {
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-arrows {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.nav-arrow-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary-light);
    color: var(--primary);
}

.month-selector-wrapper {
    position: relative;
    cursor: pointer;
}

.month-selector-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.month-selector-header:hover {
    background: var(--primary-soft);
}

.month-selector-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.month-dropdown-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.month-dropdown-list.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.month-dropdown-item {
    padding: 0.6rem;
    text-align: center;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.month-dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.month-dropdown-item.active {
    background: var(--primary);
    color: white;
}

/* Calendar Date Content Enhancements - Merged into main grid section */

.day-number {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.calendar-event-chips {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.event-chip {
    font-size: 13.5px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.3;
    border-left: 5px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    margin-bottom: 2px;
    width: 100%;
    box-sizing: border-box;
}

.event-chip.type-find {
    background: #dbeafe;
    color: #1e40af;
    border-left-color: #1e40af;
}

.event-chip.type-exec {
    background: #dcfce7;
    color: #166534;
    border-left-color: #166534;
}

.event-chip.type-reg {
    background: #f3e8ff;
    color: #6b21a8;
    border-left-color: #6b21a8;
}

.event-chip.type-plan {
    background: #ffedd5;
    color: #9a3412;
    border-left-color: #ea580c;
}

.event-chip.type-ext {
    background: #f1f5f9;
    color: #334155;
    border-left-color: #64748b;
}

.event-chip.type-etc {
    background: #fef3c7;
    color: #92400e;
    border-left-color: #92400e;
}

.event-chip.type-out {
    background: #fee2e2;
    color: #b91c1c;
    border-left-color: #b91c1c;
}

/* Mobile Top Bar */
.mobile-top-bar {
    display: none;
    height: 64px;
    background: var(--sidebar-bg);
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-logo {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    flex: 1;
    text-align: center;
}

.mobile-top-bar-btn {
    width: 40px;
    height: 40px;
    display: none;
    /* Shown by JS when PWA is ready */
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    /* Less visible */
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-top-bar-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-top-bar-btn i,
.mobile-top-bar-btn svg {
    width: 20px !important;
    height: 20px !important;
}

/* Notice Accordion (Desktop Only) */
.notice-section.desktop-only {
    padding: 1rem;
    background: white;
}

.mobile-event-list-container {
    padding: 1.5rem;
    background: var(--bg-app);
    /* Match app background */
    border-top: 8px solid var(--bg-app);
}

.mobile-event-list-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/* Make mobile list same as sidebar (Dark Theme) */
.sidebar-event-list.mobile-theme {
    background: #0c1222;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    height: auto;
    overflow-y: visible;
    /* Let the main scroll handle it */
}

.sidebar-event-list.mobile-theme .sidebar-event-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-event-list.mobile-theme .sidebar-event-item .event-title {
    color: white;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.notice-header h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notice-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.notice-item-header {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-item-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.notice-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.notice-item.expanded .notice-item-content {
    max-height: 500px;
    border-top: 1px solid var(--border);
}

.notice-inner {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.notice-item.expanded {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.mobile-only {
    display: none;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .detail-form-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .detail-form-container {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .detail-section-card.full-width {
        grid-column: span 1 !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-top-bar {
        display: flex;
    }

    .app-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .sidebar {
        position: fixed;
        left: -100vw;
        top: 0;
        width: 85vw;
        height: 100vh;
        z-index: 2000;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        /* Sidebar main & sub */
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-main {
        width: 60px;
        padding-top: 0;
    }

    .sidebar-logo-area {
        height: 64px;
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
        background: #0c1222;
        color: white;
        justify-content: space-between;
    }

    .sidebar-logo-area h2 {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .close-sidebar-btn {
        background: none;
        border: none;
        color: var(--sidebar-text);
        cursor: pointer;
    }

    .main-content {
        width: 100%;
        height: auto;
        flex: 1;
        overflow: visible;
    }

    .header {
        padding: 0;
        border-bottom: 8px solid var(--bg-app);
    }

    .calendar-day {
        min-height: 80px;
    }

    .event-chip {
        font-size: 8px;
    }

    /* Mobile Top Bar Login Button Style Override */
    .mobile-top-bar .login-line-btn {
        display: flex;
        width: 40px;
        height: 64px;
        margin: 0;
        justify-content: center;
        align-items: center;
    }

    .login-line-btn.mobile-only {
        display: flex;
    }
}

/* Toast/Buttons (Keep Existing) */
#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    width: 85%;
    max-width: 450px;
    align-items: center;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    width: 100%;
}

.toast.success {
    border-left: 6px solid var(--success);
}

.toast.error {
    border-left: 6px solid var(--danger);
}

@keyframes toast-in {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }

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

@keyframes toast-out {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
}

/* Organization Entry Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Deep dark background */
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.org-modal-content {
    background: white;
    width: 90%;
    max-width: 440px;
    padding: 3rem 2.5rem;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: org-modal-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes org-modal-in {
    from {
        transform: translateY(40px) scale(0.9);
        opacity: 0;
    }

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

.org-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.org-modal-header p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.org-modal-body .input-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

#orgCodeInput {
    padding: 1.25rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    background: #f8fafc;
}

#orgCodeInput:focus {
    border-color: var(--primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-soft);
}

#orgSubmitBtn {
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    transition: all 0.3s;
}

#orgSubmitBtn:active {
    transform: scale(0.96);
}

.org-help {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-action-btn.primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border);
}

/* Title Type Toggle */
.title-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.title-type-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.title-tab {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    border: none;
    background: none;
}

.title-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.title-input-wrapper {
    position: relative;
    overflow: hidden;
}

.title-input-group {
    display: none;
}

.title-input-group.active {
    display: block;
    animation: slideUpFade 0.3s ease-out;
}

@keyframes slideUpFade {
    from {
        transform: translateY(5px);
        opacity: 0;
    }

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

/* Detail Page Premium Header */
.detail-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-center-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-dark);
    white-space: nowrap;
}

.detail-title-prefix {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.readonly-badge {
    font-size: 0.7rem;
    color: var(--danger);
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: 600;
}

.btn-danger-soft {
    background: #fff1f2;
    color: var(--danger);
    border: 1px solid #fecdd3;
}

.btn-danger-soft:hover {
    background: var(--danger);
    color: white;
}

/* Existing styles below */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

/* Today Button & Highlight */
.today-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 8px;
    border: 1.5px solid var(--primary);
    background: white;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.today-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.calendar-day.today {
    background-color: var(--primary-soft) !important;
    position: relative;
    box-shadow: inset 0 0 0 1px var(--primary-light);
}

.calendar-day.today .day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white !important;
    border-radius: 50%;
    margin-bottom: 6px;
    font-size: 0.7rem;
}

/* Checklist Wide Section */
.checklist-wide-section {
    margin-top: 2rem;
    padding: 0 1rem;
    animation: slideUpFade 0.6s ease-out 0.2s both;
}

.section-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-badge {
    background: var(--primary-light);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checklist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.check-item:hover {
    background: white;
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.check-item.completed {
    opacity: 0.6;
    background: #f1f5f9;
}

.check-item.completed .check-label {
    text-decoration: line-through;
    color: var(--text-muted);
}

.check-item .check-box {
    color: var(--text-muted);
    transition: color 0.2s;
}

.check-item.completed .check-box {
    color: var(--primary);
}

.btn-dashed {
    border: 2px dashed #cbd5e1;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-dashed:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: #f1f5f9;
}

@media (max-width: 768px) {
    .checklist-items {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Title Header Styling */
.sidebar-sub-header {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 1rem 1.5rem;
    /* Sufficient padding for larger click area */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-sub-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

#sidebarMonthTitle {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    transition: color 0.2s;
}

.sidebar-sub-header:hover #sidebarMonthTitle {
    color: var(--primary-light);
}


/* notice-section Inside calendarView - Horizontal Slider */
#calendarView .notice-section {
    padding: 0.75rem 0 0.25rem;
    /* 하단 패딩 대폭 축소 */
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    overflow: hidden;
}

.notice-slider-viewport {
    width: 100%;
    overflow: hidden;
    padding: 5px 0 0;
    /* 하단 패딩 제거 */
}

.notice-cards-slider {
    display: flex;
    gap: 1rem;
    padding: 0 2rem;
    width: 100%;
    justify-content: flex-start;
}

.notice-cards-slider:hover {
    animation-play-state: paused;
}


.notice-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1.1rem 0.4rem;
    /* 패딩 더 축소 */
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    /* 간격 축소 */
    position: relative;
    overflow: hidden;
    width: 300px;
    height: 85px;
    /* 높이 극단적으로 축소 */
    flex-shrink: 0;
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

/* 프리미엄 컬러 바 */
.notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-light);
    opacity: 0.8;
}

/* Edit Mode Styles */
.notice-card-edit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    padding: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.notice-edit-input,
.notice-edit-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s;
}

.notice-edit-input:focus,
.notice-edit-textarea:focus {
    border-color: var(--primary-light);
}

.notice-edit-input {
    font-weight: 700;
}

.notice-edit-textarea {
    flex-grow: 1;
    resize: none;
}

.notice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    /* 제목 1줄 강제 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    /* 내용 2줄 제한 */
    -webkit-box-orient: vertical;
}

/* Save/Cancel Buttons */
.edit-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

/* Delete Button Styling */
.notice-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    /* Default hidden */
    transition: all 0.2s;
    z-index: 5;
}

.notice-card:hover .notice-delete-btn {
    opacity: 1;
    /* Show on hover */
}

.notice-delete-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* Empty Slot Styling */
.notice-card.empty-slot {
    border: 1px dashed var(--border);
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.notice-card.empty-slot::before {
    display: none;
    /* No color bar for empty slots */
}

/* Add Notice Card (Subclass of empty-slot) */
.add-notice-card {
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

.add-notice-card:hover {
    border-color: var(--primary-light);
    background: var(--primary-soft) !important;
    color: var(--primary);
}

.add-notice-card i {
    opacity: 0.25;
    transition: opacity 0.2s;
}

.add-notice-card:hover i {
    opacity: 0.8;
}

.add-notice-card i {
    width: 32px;
    height: 32px;
    opacity: 0.3;
}


/* Yearly View Styles */
.yearly-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 1px solid var(--border);
}

.yearly-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.yearly-calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2.5rem;
}

.mini-month {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-top: 0.5rem;
}

.mini-day-header,
.mini-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.mini-day {
    color: var(--text-main);
}

.mini-day.has-event {
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 700;
}

.mini-day.today {
    background: var(--primary);
    color: white;
    border-radius: 4px;
}

.sidebar-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* Sidebar Header Toggle Group (행사/기록) */
.sidebar-header-actions {
    display: flex;
    gap: 0.5rem;
}

.yearly-toggle-group {
    display: flex;
    background: #1e293b;
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-item {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #94a3b8;
    border: none;
    background: none;
    white-space: nowrap;
}

.toggle-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
}

.toggle-item:not(.active):hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* 기존 버튼 스타일과 충돌 방지 */
.sidebar-header-actions .btn {
    display: none;
    /* 기존 버튼은 숨김 */
}


.mini-month:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.mini-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mini-month-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.mini-event-count {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Yearly List Table Styles */
.yearly-list-container {
    padding: 2rem;
}

.yearly-list-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.yearly-list-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.yearly-list-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.yearly-list-table tr:hover td {
    background: var(--primary-soft);
    cursor: pointer;
}

.list-date {
    color: var(--primary);
    font-weight: 700;
}

.list-title {
    color: var(--primary-dark);
}

.list-time {
    font-family: monospace;
}

.list-mgr {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.no-events-message {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}


.inline-map-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: white;
    border-radius: inherit;
    /* Match parent's radius */
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.inline-map-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.inline-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
}

.inline-map-header button {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
}

.inline-map-header button:hover {
    color: var(--danger);
}

#mapFrame {
    width: 100%;
    height: calc(100% - 40px);
    /* Height minus header */
    border: none;
}

/* Repertoire Inline Overlay */
.inline-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: white;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.inline-overlay-container.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: scale(1) !important;
}

.inline-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.inline-overlay-header span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
}

.overlay-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.inline-overlay-content {
    flex-grow: 1;
    padding: 1.25rem;
}

/* Manual Input Row (Costume / Dressing Room) */
.manual-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.manual-input-row .select-btn {
    min-width: 65px;
    flex-shrink: 0;
    margin: 0;
}

.manual-input-row .form-input {
    flex-grow: 1;
    height: 36px;
    padding: 0 0.85rem;
    font-size: 0.85rem;
}


/* Manual Input Container (Responsive Grid) */
.manual-input-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .manual-input-container {
        grid-template-columns: 1fr;
    }
}

/* Custom Etc Input Box */
.etc-input-overlay {
    margin-bottom: 0.6rem;
    animation: fadeInDown 0.25s ease-out;
}

.etc-input-overlay input {
    width: 100%;
    border: 2px solid var(--primary-light);
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.65rem;
    outline: none;
    box-sizing: border-box;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }

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

/* PWA Install Button */
.install-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    animation: installPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.install-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    animation: none;
}

.install-btn i,
.install-btn svg {
    width: 20px !important;
    height: 20px !important;
}

@keyframes installPulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.7);
    }
}

/* Record Year Navigation Buttons */
.record-year-btn {
    padding: 1.25rem 1rem !important;
    margin-bottom: 1rem !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(30, 41, 59, 0.6) !important;
}

.record-year-btn:hover {
    background-color: #1e293b !important;
    border-color: var(--primary-light) !important;
    transform: translateX(5px);
}

.record-year-btn.active {
    background-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4) !important;
}

.record-year-btn .event-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* Yearly Summary Inspector 스타일 */
.yearly-summary-container {
    padding: 1rem;
    animation: fadeIn 0.4s ease-out;
}

.yearly-summary-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.summary-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.stat-value.primary {
    color: var(--primary-light);
}

.stat-value.success {
    color: #10b981;
}

.stat-value.warning {
    color: #f59e0b;
}

.inspector-guide {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #475569;
}

.inspector-guide i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.guide-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Inspector 전용 세로 정렬 레이아웃 */
.inspector-layout {
    display: block !important;
    width: 100%;
}

.inspector-form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.inspector-single-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.inspector-single-col .field-group {
    width: 100% !important;
}

/* 카드 여백 및 폭 최적화 */
.inspector-body .detail-section-card {
    margin-bottom: 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: white !important;
    /* 다시 화이트로 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    width: calc(100% - 2px) !important;
    max-width: 100% !important;
    color: #1e293b !important;
    /* 텍스트는 어두운 색으로 */
}

.inspector-body .form-input {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

.inspector-body .field-title {
    color: #64748b !important;
}

/* 버튼 그룹 자동 줄바꿈 (길어지면 2줄) */
.inspector-body .btn-group {
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.inspector-body .btn-group .select-btn {
    flex: 1 0 calc(33.33% - 8px);
    /* 최소 3열 유지하되 좁으면 아래로 */
    min-width: 60px;
    padding: 8px 4px !important;
    font-size: 0.8rem !important;
}

/* 사이드바 스크롤바 숨기기 (기능은 유지) */
.inspector-body::-webkit-scrollbar,
.sidebar-event-list::-webkit-scrollbar,
#sidebar::-webkit-scrollbar {
    display: none !important;
}

.inspector-body,
.sidebar-event-list,
#sidebar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* 연간 일정 필 스위치 */
.yearly-toggle-group.pill-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.1);
    /* 어두운 배경에서 어울리는 그레이 */
    padding: 3px;
    border-radius: 50px;
    gap: 2px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pill-switch .switch-item {
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.pill-switch .switch-item.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pill-switch .switch-item:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* 인스펙터 섹션 간 여백 보강 */
.inspector-body .detail-section-card {
    margin-bottom: 1.5rem !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden;
}

.inspector-body .section-label {
    padding-bottom: 0.75rem !important;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* 연간 달력 뷰 레이아웃 */
.yearly-calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    height: calc(100vh - 40px);
    overflow-y: auto;
}

.mini-month {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.mini-month:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mini-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

.mini-month-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.mini-event-count {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
}

.mini-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.mini-day-header {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    padding-bottom: 6px;
}

.mini-day {
    font-size: 0.75rem;
    padding: 8px 0;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
}

.mini-day.has-event {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 800;
}

.mini-day.today {
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-weight: 900;
}