/**
 * LH 청약분양정보 달력 페이지 스타일
 * 깔끔하고 심플한 디자인 (병원서류분석 페이지 스타일 참고)
 */

.lh-calendar-page {
    min-height: 100vh;
    background: #ffffff;
    padding-top: 72px;
    padding-bottom: 80px;
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* 헤더 - 깔끔한 흰색 배경 */
.calendar-header {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 70%);
    color: #111827;
    padding: 20px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5px;
}

.back-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}

.back-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateX(-2px);
}

.header-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-text h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.header-text p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.gradient-text {
    color: #2563eb;
    font-weight: 700;
}

/* 통계 카드 - 심플한 흰색 카드 */
.stats-cards-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.stat-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.today {
    background: #fef3c7;
    color: #f59e0b;
}

.stat-icon.week {
    background: #d1fae5;
    color: #10b981;
}

.stat-icon.month {
    background: #dbeafe;
    color: #3b82f6;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

.stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

/* 레이아웃 */
.calendar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

.calendar-wrapper {
    display: block;
}

.calendar-content {
    padding: 5px;
    position: relative;
}

/* 좌측 필터 사이드바 - 깔끔한 흰색 */
.filter-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
    padding: 5px;
}

.filter-sidebar > * {
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
}

/* 달력 헤더 통계 영역 */
.calendar-header-stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    margin-left: 16px;
    background: transparent;
    border: none;
}

/* FullCalendar 헤더와 통계를 같은 줄에 배치 */
.fc-header-toolbar {
    position: relative !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5em;
    padding: 12px 0 !important;
    border-bottom: 2px solid #e5e7eb;
}

.fc-toolbar-chunk {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-toolbar-chunk:last-child {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-stats-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    white-space: nowrap;
}

.header-stats-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.header-stat-icon.today {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.header-stat-icon.week {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.header-stat-icon.month {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.header-stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.header-stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    line-height: 1.2;
}

/* 우측 통계 사이드바 숨김 */
.stats-sidebar {
    display: none;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.reset-filter-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.reset-filter-btn:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.filter-group .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #ffffff;
    color: #111827;
    transition: all 0.2s;
}

.filter-group .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 날짜 타입 버튼 그룹 */
.date-type-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.date-type-btn {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.date-type-btn:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.date-type-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.date-type-btn.active:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-color: #1d4ed8;
    color: #ffffff;
}

.filter-submit-btn {
    flex: 1;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.filter-submit-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.sync-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.info-card {
    background: #f9fafb;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid #e5e7eb;
}

.info-card i {
    color: #3b82f6;
    margin-right: 8px;
}

.info-card strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    font-size: 0.875rem;
}

.info-card p {
    margin: 4px 0 12px;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.5;
}

.btn-manual-sync {
    width: 100%;
    padding: 8px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-manual-sync:hover {
    background: #2563eb;
}

.btn-manual-sync:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 중앙 달력 영역 */
.calendar-main {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.calendar-content {
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
}

/* 색상 범례 */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.legend-label {
    color: #374151;
    font-weight: 500;
}

#calendar {
    font-family: 'Pretendard Variable', sans-serif;
}

/* FullCalendar 커스터마이징 - 더 예쁘게 */
.fc-header-toolbar {
    margin-bottom: 1.5em;
    padding: 12px 0;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fc-toolbar-chunk {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-toolbar-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

.fc-button {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.fc-button:hover {
    background: #f9fafb !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.fc-button-active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border-color: #2563eb !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3) !important;
}

.fc-today-button {
    background: #f0f9ff !important;
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.fc-daygrid-day {
    border-color: #e5e7eb !important;
}

.fc-daygrid-day-number {
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px !important;
}

.fc-day-today {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
}

.fc-day-today .fc-daygrid-day-number {
    color: #2563eb !important;
    font-weight: 700 !important;
    background: transparent !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline !important;
    margin: 0 !important;
    padding: 2px 6px !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.fc-col-header-cell {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
    padding: 12px 0 !important;
}

.fc-col-header-cell-cushion {
    color: #6b7280 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-event {
    border-radius: 6px !important;
    border: none !important;
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    transition: all 0.2s !important;
}

.fc-event:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

.fc-event-title {
    font-weight: 600 !important;
}

/* 상세정보 모달 */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.detail-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.modal-close-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.modal-close-btn:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.875rem;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.loading-spinner i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 16px;
}

.loading-spinner p {
    margin: 0;
    font-size: 0.9rem;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
}

.error-message i {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.error-message p {
    margin: 0;
    font-size: 0.9rem;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h4 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.badge-type {
    display: inline-block;
    padding: 4px 12px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    flex: 0 0 120px;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.detail-row .value {
    flex: 1;
    color: #111827;
    font-size: 0.875rem;
}

.detail-row .value a {
    color: #2563eb;
    text-decoration: none;
}

.detail-row .value a:hover {
    text-decoration: underline;
}

.detail-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-external:hover {
    background: #1d4ed8;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    text-decoration: none;
    color: white;
}

/* 모바일 하단바 */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 12px 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    justify-content: space-around;
    align-items: center;
    gap: 12px;
}

.bottom-bar-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 60px;
    text-align: center;
}

.bottom-bar-btn i {
    font-size: 1.3rem;
    color: #3b82f6;
    display: inline-block;
    line-height: 1;
}

.bottom-bar-btn span {
    font-size: 0.7rem;
    display: inline-block;
    color: #374151;
    line-height: 1.2;
}

.bottom-bar-btn:hover,
.bottom-bar-btn:active,
.bottom-bar-btn.active {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.bottom-bar-btn:hover i,
.bottom-bar-btn:active i,
.bottom-bar-btn.active i {
    color: white !important;
}

.bottom-bar-btn:hover span,
.bottom-bar-btn:active span,
.bottom-bar-btn.active span {
    color: white !important;
}

/* 모바일 필터 패널 오버레이 */
.filter-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.filter-panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 모바일 하단바 필터 패널 */
.mobile-filter-panel {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    max-height: calc(80vh - 70px);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
}

.mobile-filter-panel.active {
    transform: translateY(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.filter-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-panel-close {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.filter-panel-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.1);
}

.filter-panel-close:active {
    transform: scale(0.95);
}

.filter-panel-body {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.filter-panel-body::-webkit-scrollbar {
    width: 6px;
}

.filter-panel-body::-webkit-scrollbar-track {
    background: #f9fafb;
}

.filter-panel-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.filter-panel-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.filter-panel-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.filter-reset-btn {
    flex: 1;
    padding: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.filter-reset-btn:hover {
    background: #e5e7eb;
    color: #374151;
}


/* 모바일 반응형 */
@media (max-width: 1200px) {
    .calendar-layout {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 992px) {
    .calendar-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }
    
    .calendar-wrapper {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        display: none;
    }
    
    .stats-sidebar {
        display: none;
    }
    
    .calendar-header-stats {
        display: none !important;
    }
    
    .mobile-bottom-bar {
        display: flex !important;
    }
    
    .mobile-stats-row {
        display: flex !important;
    }
    
    .lh-calendar-page {
        padding-bottom: 80px;
    }
    
    /* 하단바 버튼 모바일 스타일 */
    .bottom-bar-btn {
        min-height: 56px;
        padding: 6px 8px;
    }
    
    .bottom-bar-btn i {
        font-size: 1.2rem;
    }
    
    .bottom-bar-btn span {
        font-size: 0.65rem;
    }
    
    /* 모바일 필터 패널 스타일 */
    .mobile-filter-panel {
        bottom: 70px !important;
        max-height: calc(85vh - 70px) !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .mobile-filter-panel.active {
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .filter-panel-header {
        padding: 14px 16px !important;
    }
    
    .filter-panel-header h3 {
        font-size: 1rem !important;
    }
    
    .filter-panel-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    
    .filter-panel-body {
        padding: 16px !important;
        max-height: calc(85vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-group {
        margin-bottom: 16px !important;
    }
    
    .filter-group label {
        font-size: 0.8rem !important;
        margin-bottom: 6px !important;
    }
    
    .filter-group .form-control {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .date-type-buttons {
        gap: 6px !important;
    }
    
    .date-type-btn {
        padding: 10px 8px !important;
        font-size: 0.85rem !important;
    }
    
    .filter-panel-actions {
        gap: 10px !important;
        margin-top: 16px !important;
        padding-top: 16px !important;
    }
    
    .filter-reset-btn,
    .filter-submit-btn {
        flex: 1 !important;
        padding: 12px !important;
        font-size: 0.85rem !important;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .lh-calendar-page {
        padding-top: 60px;
    }
    
    .header-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        padding: 0 5px;
    }
    
    .back-btn {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    .header-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .header-text h1 {
        font-size: 0.95rem;
        line-height: 1.3;
        margin: 0;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .header-text p {
        font-size: 0.7rem;
        margin: 0;
        color: #6b7280;
        line-height: 1.2;
    }
    
    .calendar-header {
        padding: 10px 0;
        margin-bottom: 16px;
    }
    
    .calendar-main {
        padding: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .calendar-content {
        padding: 10px 5px;
    }
    
    .calendar-layout {
        padding: 0 !important;
    }
    
    .calendar-legend {
        gap: 10px;
        padding: 10px;
        flex-wrap: wrap;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
    }
    
    /* 모바일 통계 카드 1줄 표시 (숫자와 텍스트만) */
    .mobile-stats-row {
        display: flex;
        gap: 4px;
        margin-bottom: 12px;
        padding: 0 5px;
    }
    
    .mobile-stat-item {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
        background: #f9fafb;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }
    
    .mobile-stat-value {
        font-size: 1.25rem;
        font-weight: 700;
        color: #111827;
        line-height: 1.2;
    }
    
    .mobile-stat-label {
        font-size: 0.7rem;
        color: #6b7280;
        margin-top: 2px;
    }
    
    /* 모바일 헤더 1줄 레이아웃 */
    .fc-header-toolbar {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 4px !important;
        padding: 8px 0 !important;
        margin-bottom: 1em !important;
    }
    
    .fc-toolbar-chunk {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }
    
    .fc-toolbar-chunk:first-child {
        order: 1;
        flex: 0 0 auto;
    }
    
    .fc-toolbar-chunk:nth-child(2) {
        order: 2;
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
        padding: 0 4px;
    }
    
    .fc-toolbar-chunk:last-child {
        order: 3;
        flex: 0 0 auto;
    }
    
    .fc-toolbar-title {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
        padding: 0 4px !important;
    }
    
    .fc-button {
        padding: 6px 8px !important;
        font-size: 0.7rem !important;
        min-width: auto !important;
        height: 32px !important;
    }
    
    .fc-prev-button,
    .fc-next-button {
        padding: 0 !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }
    
    .fc-prev-button .fc-icon,
    .fc-next-button .fc-icon {
        font-size: 0.7rem !important;
    }
    
    .fc-today-button {
        padding: 6px 8px !important;
        font-size: 0.65rem !important;
        white-space: nowrap !important;
    }
    
    .fc-dayGridMonth-button {
        padding: 6px 8px !important;
        font-size: 0.65rem !important;
        white-space: nowrap !important;
    }
    
    /* 부모 컨테이너 패딩 0 */
    .calendar-layout {
        padding: 0 !important;
    }
    
    .calendar-main {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .calendar-content {
        padding: 10px 5px !important;
    }
    
    /* 모바일 필터 패널 스타일 (768px 이하) */
    .mobile-filter-panel {
        bottom: 70px !important;
        max-height: calc(85vh - 70px) !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .mobile-filter-panel.active {
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .filter-panel-header {
        padding: 12px 16px !important;
    }
    
    .filter-panel-header h3 {
        font-size: 0.95rem !important;
    }
    
    .filter-panel-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
    
    .filter-panel-body {
        padding: 16px !important;
        max-height: calc(85vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-group {
        margin-bottom: 14px !important;
    }
    
    .filter-group label {
        font-size: 0.8rem !important;
        margin-bottom: 6px !important;
    }
    
    .filter-group .form-control {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }
    
    .filter-panel-actions {
        gap: 8px !important;
        margin-top: 16px !important;
        padding-top: 16px !important;
    }
    
    .filter-reset-btn,
    .filter-submit-btn {
        flex: 1 !important;
        padding: 11px !important;
        font-size: 0.8rem !important;
    }
    
    /* 필터 오버레이 모바일 */
    .filter-panel-overlay {
        bottom: 70px !important;
    }
}
