/* ===== 회의실·차량 예약 현황판 스타일 ===== */

/* 페이지 컨테이너 가운데 정렬 */
.page-container {
    padding: 20px;
}

.page-container .container {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.booking-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== 헤더 ===== */
.booking-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.3);
}

.header-content h1 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
}

.header-content .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

.header-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.header-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== 통계 대시보드 ===== */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon i {
    font-size: 1.4rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== 필터 섹션 ===== */
.filter-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-input {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    width: 100%;
}

.filter-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-select,
#datePicker {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
}

.filter-select:focus,
#datePicker:focus {
    outline: none;
    border-color: #4facfe;
}

/* Flatpickr 스타일 커스터마이징 */
.flatpickr-input {
    cursor: pointer;
}

/* ===== 시간표 섹션 ===== */
.schedule-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.schedule-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

.legend-color.available {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.legend-color.reserved {
    background: #f44336;
    border: 2px solid #d32f2f;
}

.legend-color.current {
    background: #fff3e0;
    border: 2px solid #ff9800;
}

.schedule-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.schedule-table thead {
    background: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 10;
}

.schedule-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #555;
    border: 1px solid #e0e0e0;
    font-size: 0.85rem;
    white-space: nowrap;
}

.schedule-table th.resource-col {
    background: #f8f9fa;
    min-width: 150px;
    text-align: left;
    padding-left: 15px;
    position: sticky;
    left: 0;
    z-index: 11;
}

.schedule-table td {
    padding: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    position: relative;
    min-width: 60px;
    height: 50px;
    transition: all 0.2s;
}

.schedule-table tbody tr:hover td {
    background: #f8f9fa;
}

.schedule-table tbody tr:hover td.resource-name {
    background: #e3f2fd;
}

.schedule-table td.resource-name {
    font-weight: 600;
    text-align: left;
    padding-left: 15px;
    background: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 9;
    border-right: 2px solid #ddd;
}

/* 시간 슬롯 스타일 */
.time-slot {
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot.available {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    transition: all 0.2s ease;
}

.time-slot.available:hover {
    background: #c8e6c9;
    border-color: #4facfe;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.time-slot.reserved {
    background: #f44336;
    border: 2px solid #d32f2f;
    cursor: pointer;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.3);
    transition: all 0.2s ease;
}

.time-slot.current {
    background: #fff3e0;
    border: 2px solid #ff9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.3);
    z-index: 5;
}

.time-slot:hover {
    transform: scale(1.05);
    z-index: 6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.time-slot.reserved:hover {
    background: #d32f2f;
    border-color: #b71c1c;
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.5);
    transform: scale(1.05);
}

.time-slot.available:hover {
    background: #c8e6c9;
}

/* 예약 정보 툴팁 */
.booking-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
    margin-bottom: 5px;
}

.time-slot:hover .booking-tooltip {
    opacity: 1;
}

.booking-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

/* ===== 상태 배지 ===== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.reserved {
    background: #ffebee;
    color: #c62828;
}

.status-badge.available {
    background: #e8f5e9;
    color: #2e7d32;
}

/* ===== 리스트 섹션 ===== */
.list-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.list-header {
    margin-bottom: 20px;
}

.list-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-table {
    width: 100%;
}

/* DataTables 커스터마이징 */
.dataTables_wrapper {
    margin-top: 20px;
}

.dataTables_filter input {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-left: 10px;
}

.dataTables_length select {
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin: 0 10px;
}

.dataTables_info,
.dataTables_paginate {
    margin-top: 15px;
}

/* ===== 모달 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: white;
    border-radius: 0 0 16px 16px;
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 100px;
    font-size: 0.95rem;
}

.info-value {
    color: #333;
    flex: 1;
    font-size: 1rem;
    word-break: break-word;
}

/* ===== FAQ/QNA 섹션 (페이지 하단) ===== */
.faq-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
    margin: 40px auto 0 auto;
    max-width: 900px;
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}

.faq-title i {
    color: #2563eb;
    font-size: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    width: 100%;
}

.faq-item.active,
.faq-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    background: #f8fafc;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    line-height: 1.6;
    width: 100%;
}

.faq-question span:not(.faq-icon) {
    flex: 1;
    word-break: keep-all;
}

.faq-icon {
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-arrow {
    margin-left: auto;
    color: #64748b;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #2563eb;
}

.faq-item .faq-answer {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    width: 100%;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    margin-bottom: 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #1e293b;
    font-weight: 600;
}

/* ===== 폼 스타일 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group .required {
    color: #e74c3c;
    margin-left: 4px;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #4facfe;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===== 자원 관리 모달 ===== */
.resource-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.resource-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-tab:hover {
    color: #4facfe;
    background: #f0f7ff;
}

.resource-tab.active {
    color: #4facfe;
    border-bottom-color: #4facfe;
    font-weight: 600;
}

.resource-tab-content {
    display: none;
}

.resource-tab-content.active {
    display: block;
}

.resource-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.resource-list-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.resource-item:hover {
    background: #f0f0f0;
    border-color: #4facfe;
}

.resource-item-info {
    flex: 1;
}

.resource-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.resource-item-details {
    font-size: 0.9rem;
    color: #666;
}

.resource-item-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 8px 12px;
    min-width: auto;
    font-size: 0.9rem;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    .booking-container {
        padding: 15px 10px;
    }

    .booking-header {
        padding: 20px;
    }

    .header-content h1 {
        font-size: 1.6rem;
    }

    .header-actions {
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-legend {
        width: 100%;
        justify-content: space-between;
    }

    .schedule-table-wrapper {
        font-size: 0.85rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 6px 4px;
        font-size: 0.8rem;
    }

    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .schedule-table {
        min-width: 600px;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .info-label {
        min-width: auto;
    }
    
    .faq-section {
        padding: 24px 20px;
        margin: 24px 0 0;
    }
    
    .faq-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .faq-item {
        padding: 16px 18px;
    }
    
    .faq-question {
        font-size: 1rem;
        gap: 10px;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .faq-item .faq-answer {
        font-size: 0.95rem;
    }
}

