/* 인덱스 페이지 다크 테마 스타일 */

:root {
    --dark-text-color: #f8fafc;
    --dark-background-color: #020817;
    --dark-nav-text: #94a3b8;
    --dark-accent-color: #d8b4fe; /* #ff85b5보다 약간 보라색 느낌 */
    --dark-card-background: #0f172a;
    --dark-border-color: #1e293b;
    --dark-hover-color: #a78bfa;
}

body.index-page {
    background-color: var(--dark-background-color);
    color: var(--dark-text-color);
}

body.index-page header {
    background: var(--dark-card-background);
    border-bottom: 1px solid var(--dark-border-color);
}

body.index-page .nav-menu a {
    color: var(--dark-nav-text);
}

body.index-page .nav-menu a:hover {
    color: var(--dark-accent-color);
}

body.index-page .container {
    background-color: var(--dark-background-color);
}

/* 항공편 정보 섹션 */
.flight-section {
    padding: 40px 20px;
    max-width: 1920px;
    margin: 0 auto;
}

.flight-section h1 {
    color: var(--dark-text-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.flight-section .subtitle {
    color: var(--dark-nav-text);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* 검색 및 필터 영역 */
.flight-search-filter {
    margin-bottom: 30px;
}

.search-bar-container {
    margin-bottom: 15px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--dark-nav-text);
    font-size: 1.1rem;
    z-index: 1;
}

.flight-search-input {
    width: 100%;
    padding: 14px 50px 14px 45px;
    background: var(--dark-card-background);
    border: 2px solid var(--dark-border-color);
    border-radius: 12px;
    color: var(--dark-text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.flight-search-input:focus {
    outline: none;
    border-color: var(--dark-accent-color);
    box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.1);
}

.flight-search-input::placeholder {
    color: var(--dark-nav-text);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--dark-nav-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.search-clear-btn:hover {
    background: var(--dark-border-color);
    color: var(--dark-text-color);
}

/* 필터 배지 */
.filter-badges-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--dark-accent-color);
    color: var(--dark-background-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-remove-btn {
    background: none;
    border: none;
    color: var(--dark-background-color);
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.filter-remove-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 검색 결과 없음 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-nav-text);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 항공편 카드 그리드 */
.flight-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 30px;
}

/* 항공편 카드 */
.flight-card {
    background: var(--dark-card-background);
    border: 1px solid var(--dark-border-color);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--dark-accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flight-card:hover {
    transform: translateY(-4px);
    border-color: var(--dark-accent-color);
    box-shadow: 0 8px 24px rgba(216, 180, 254, 0.2);
}

.flight-card:hover::before {
    opacity: 1;
}

/* 항공편 카드 헤더 */
.flight-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--dark-border-color);
}

.flight-airline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text-color);
    line-height: 1.2;
}

.flight-number {
    font-size: 0.8rem;
    color: var(--dark-nav-text);
    background: var(--dark-background-color);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

.flight-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
    width: fit-content;
}

.flight-status.arrived {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.flight-status.delayed {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

/* 항공편 경로 */
.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.route-item {
    flex: 1;
    text-align: center;
}

.route-label {
    font-size: 0.65rem;
    color: var(--dark-nav-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.route-city {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text-color);
    margin-bottom: 2px;
    line-height: 1.3;
}

.route-code {
    font-size: 0.75rem;
    color: var(--dark-accent-color);
    font-weight: 700;
}

.route-arrow {
    font-size: 1.1rem;
    color: var(--dark-accent-color);
    margin: 0 10px;
}

/* 항공편 시간 정보 */
.flight-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--dark-border-color);
}

.time-item {
    text-align: center;
}

.time-label {
    font-size: 0.65rem;
    color: var(--dark-nav-text);
    margin-bottom: 4px;
}

.time-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text-color);
    line-height: 1.2;
}

.time-diff {
    font-size: 0.65rem;
    color: var(--dark-accent-color);
    margin-top: 2px;
}

/* 항공편 추가 정보 */
.flight-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--dark-border-color);
    font-size: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dark-nav-text);
}

.info-label {
    color: var(--dark-nav-text);
}

.info-value {
    color: var(--dark-text-color);
    font-weight: 600;
}

/* 로딩 상태 */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-nav-text);
}

.loading-spinner {
    border: 3px solid var(--dark-border-color);
    border-top: 3px solid var(--dark-accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 에러 상태 */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
}

.error-state .error-message {
    font-size: 1.1rem;
    margin-top: 16px;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-nav-text);
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 상단 페이지네이션 */
.flight-pagination-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--dark-card-background);
    border: 1px solid var(--dark-border-color);
    border-radius: 12px;
}

/* 검색 안내 텍스트 */
.search-notice-text {
    padding: 16px 20px;
    background: rgba(216, 180, 254, 0.1);
    border: 1px solid rgba(216, 180, 254, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
}

.notice-text {
    color: var(--dark-text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.notice-text strong {
    color: var(--dark-accent-color);
    font-weight: 700;
}

/* 검색 안내 카드 (애드센스 광고용) */
.search-notice-card {
    padding: 16px 20px;
    background: rgba(216, 180, 254, 0.1);
    border: 1px solid rgba(216, 180, 254, 0.3);
    border-radius: 12px;
    margin-bottom: 30px;
    min-height: 100px; /* 광고 높이에 맞게 조정 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.notice-icon {
    color: var(--dark-accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-content {
    flex: 1;
    min-width: 0; /* Flexbox 아이템이 축소될 수 있도록 함 */
    word-break: normal; /* 단어 단위로 줄바꿈 */
    overflow-wrap: normal; /* 정상적인 줄바꿈 */
}

.notice-text {
    color: var(--dark-text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    word-break: normal; /* 텍스트가 정상적으로 줄바꿈되도록 */
    overflow-wrap: break-word; /* 긴 단어만 줄바꿈 */
}

.notice-text strong {
    color: var(--dark-accent-color);
    font-weight: 700;
}

/* 페이지네이션 */
.flight-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination-btn {
    background: var(--dark-card-background);
    border: 1px solid var(--dark-border-color);
    color: var(--dark-text-color);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--dark-accent-color);
    border-color: var(--dark-accent-color);
    color: var(--dark-background-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--dark-nav-text);
    font-size: 0.9rem;
}

/* 태블릿 반응형 */
@media (max-width: 1200px) {
    .flight-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .flight-section h1 {
        font-size: 2rem;
    }

    .flight-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .flight-card {
        padding: 20px;
    }

    .flight-route {
        flex-direction: column;
        gap: 16px;
    }

    .route-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .flight-time {
        grid-template-columns: 1fr;
    }
}

/* 승객 정보 카드 */
.passenger-info-card {
    background: var(--dark-card-background);
    border: 1px solid var(--dark-border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    max-height: 250px; /* 높이 제한 (약 3분의 1 크기) */
}

.passenger-info-card:hover {
    border-color: var(--dark-accent-color);
    box-shadow: 0 8px 24px rgba(216, 180, 254, 0.2);
}

.passenger-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dark-border-color);
    flex-shrink: 0; /* 헤더는 고정 */
}

.passenger-card-header h2 {
    color: var(--dark-text-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.passenger-card-link {
    color: var(--dark-accent-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.passenger-card-link:hover {
    color: var(--dark-hover-color);
    transform: translateX(4px);
}

.passenger-card-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.passenger-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--dark-nav-text);
    padding: 12px 20px;
}

.loading-spinner-small {
    border: 2px solid var(--dark-border-color);
    border-top: 2px solid var(--dark-accent-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.passenger-table-container {
    overflow-y: auto;
    overflow-x: auto;
    flex: 1;
    min-height: 0;
    max-height: 180px; /* 스크롤 영역 높이 제한 */
}

/* 스크롤바 스타일링 */
.passenger-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.passenger-table-container::-webkit-scrollbar-track {
    background: var(--dark-background-color);
    border-radius: 3px;
}

.passenger-table-container::-webkit-scrollbar-thumb {
    background: var(--dark-border-color);
    border-radius: 3px;
}

.passenger-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--dark-accent-color);
}

.passenger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.passenger-table th,
.passenger-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid var(--dark-border-color);
}

.passenger-table th {
    background: var(--dark-background-color);
    color: var(--dark-text-color);
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
}

.passenger-table td {
    color: var(--dark-text-color);
}

.passenger-table tr:hover {
    background: rgba(216, 180, 254, 0.05);
}

.passenger-table .time-column {
    font-weight: 600;
    color: var(--dark-accent-color);
}

.traffic-light {
    font-size: 1.2rem;
}

/* 날짜 선택 카드 */
.date-selector-card {
    background: var(--dark-card-background);
    border: 1px solid var(--dark-border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.date-selector-card:hover {
    border-color: var(--dark-accent-color);
    box-shadow: 0 8px 24px rgba(216, 180, 254, 0.2);
}

.date-selector-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dark-border-color);
}

.date-selector-header i {
    color: var(--dark-accent-color);
    font-size: 1.2rem;
}

.date-selector-header span {
    color: var(--dark-text-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.date-selector-body {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.date-input {
    padding: 12px 16px;
    background: var(--dark-background-color);
    border: 2px solid var(--dark-border-color);
    border-radius: 8px;
    color: var(--dark-text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.date-input:focus {
    outline: none;
    border-color: var(--dark-accent-color);
    box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.1);
}

.date-btn {
    padding: 12px 20px;
    background: var(--dark-background-color);
    border: 2px solid var(--dark-border-color);
    border-radius: 8px;
    color: var(--dark-text-color);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.date-btn:hover {
    border-color: var(--dark-accent-color);
    background: rgba(216, 180, 254, 0.1);
    transform: translateY(-2px);
}

.date-btn.today-btn {
    background: var(--dark-accent-color);
    border-color: var(--dark-accent-color);
    color: var(--dark-background-color);
}

.date-btn.today-btn:hover {
    background: var(--dark-hover-color);
    border-color: var(--dark-hover-color);
}

.date-btn i {
    font-size: 0.9rem;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(216, 180, 254, 0.1);
    border-radius: 8px;
    color: var(--dark-accent-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.date-display i {
    font-size: 0.9rem;
}

/* 대시보드 필터 */
.dashboard-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--dark-card-background);
    border: 1px solid var(--dark-border-color);
    border-radius: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    color: var(--dark-text-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-select {
    padding: 10px 12px;
    background: var(--dark-background-color);
    border: 1px solid var(--dark-border-color);
    border-radius: 8px;
    color: var(--dark-text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--dark-accent-color);
    box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.1);
}

.filter-reset-btn {
    padding: 10px 16px;
    background: var(--dark-accent-color);
    border: none;
    border-radius: 8px;
    color: var(--dark-background-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-reset-btn:hover {
    background: var(--dark-hover-color);
    transform: translateY(-2px);
}

/* 대시보드 통계 그리드 */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--dark-card-background);
    border: 1px solid var(--dark-border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--dark-accent-color);
    box-shadow: 0 8px 24px rgba(216, 180, 254, 0.2);
    transform: translateY(-4px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.arrival {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.stat-icon.departure {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.stat-icon.t1 {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.stat-icon.t2 {
    background: rgba(216, 180, 254, 0.2);
    color: #d8b4fe;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: var(--dark-nav-text);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.stat-value {
    color: var(--dark-text-color);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-unit {
    color: var(--dark-nav-text);
    font-size: 0.8rem;
}

/* 차트 그리드 */
.dashboard-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: var(--dark-card-background);
    border: 1px solid var(--dark-border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-card:hover {
    border-color: var(--dark-accent-color);
    box-shadow: 0 8px 24px rgba(216, 180, 254, 0.2);
}

.chart-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--dark-border-color);
}

.chart-card-header h3 {
    color: var(--dark-text-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-card-header h3 i {
    color: var(--dark-accent-color);
}

.chart-card-body {
    padding: 20px;
    height: 300px;
}

/* 테이블 카드 */
.table-card {
    background: var(--dark-card-background);
    border: 1px solid var(--dark-border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.table-card:hover {
    border-color: var(--dark-accent-color);
    box-shadow: 0 8px 24px rgba(216, 180, 254, 0.2);
}

.table-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--dark-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.table-card-header h3 {
    color: var(--dark-text-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-card-header h3 i {
    color: var(--dark-accent-color);
}

.table-search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 250px;
}

.table-search-box i.fa-search {
    position: absolute;
    left: 12px;
    color: var(--dark-nav-text);
    z-index: 1;
}

.table-search-input {
    width: 100%;
    padding: 10px 40px 10px 36px;
    background: var(--dark-background-color);
    border: 1px solid var(--dark-border-color);
    border-radius: 8px;
    color: var(--dark-text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.table-search-input:focus {
    outline: none;
    border-color: var(--dark-accent-color);
    box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.1);
}

.table-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--dark-nav-text);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-search-clear:hover {
    background: var(--dark-border-color);
    color: var(--dark-text-color);
}

.table-card-body {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.table-card-body .passenger-table-container {
    max-height: 600px;
}

/* 태블릿 및 모바일 반응형 */
@media (max-width: 768px) {
    .passenger-card-header h2 {
        font-size: 1.2rem;
    }
    
    .passenger-table {
        font-size: 0.8rem;
    }
    
    .passenger-table th,
    .passenger-table td {
        padding: 8px 4px;
    }
    
    .dashboard-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card-body {
        height: 250px;
    }
    
    .table-card-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-search-box {
        min-width: 100%;
    }
    
    .date-selector-body {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-input {
        min-width: 100%;
    }
    
    .date-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 마이페이지 모달 (다크 테마) */
body.index-page .modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

body.index-page .modal-content {
    background-color: var(--dark-card-background);
    margin: 15% auto;
    padding: 30px;
    border: 1px solid var(--dark-border-color);
    width: 80%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
}

body.index-page .modal-content h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--dark-text-color);
    margin-bottom: 24px;
    font-weight: 700;
}

body.index-page .close-button {
    color: var(--dark-nav-text);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

body.index-page .close-button:hover {
    color: var(--dark-text-color);
}

body.index-page .user-info-section {
    border-bottom: 1px solid var(--dark-border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

body.index-page .nickname-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

body.index-page .nickname-form label {
    font-weight: 700;
    color: var(--dark-text-color);
    font-size: 0.95rem;
}

body.index-page #nickname-input {
    width: 100%;
    padding: 12px;
    background: var(--dark-background-color);
    border: 2px solid var(--dark-border-color);
    border-radius: 8px;
    color: var(--dark-text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

body.index-page #nickname-input:focus {
    outline: none;
    border-color: var(--dark-accent-color);
    box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.1);
}

body.index-page #nickname-input::placeholder {
    color: var(--dark-nav-text);
}

body.index-page #update-nickname-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-accent-color);
    color: var(--dark-background-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

body.index-page #update-nickname-btn:hover {
    background-color: var(--dark-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 180, 254, 0.3);
}

body.index-page .logout-section {
    margin-top: 20px;
}

body.index-page #logout-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-border-color);
    color: var(--dark-text-color);
    border: 1px solid var(--dark-border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

body.index-page #logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

body.index-page .delete-account {
    text-align: center;
    margin-top: 3rem;
}

body.index-page #delete-account-btn {
    background: none;
    color: var(--dark-nav-text);
    padding: 0;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

body.index-page #delete-account-btn:hover {
    color: #ef4444;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    body.index-page .modal-content {
        margin: 10% auto;
        width: 90%;
        padding: 24px;
    }
}

/* 애드센스 광고 스타일 추가 */
.notice-content ins.adsbygoogle {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

