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

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin-right: 0;
    vertical-align: middle;
    filter: none;
    opacity: 1;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

nav {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

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

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

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    position: relative !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none;
    touch-action: manipulation;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.room-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.room-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.room-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.room-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.room-info-item strong {
    color: var(--text-primary);
    min-width: 80px;
}

.facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.facility-tag {
    background: #eef2ff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Bookings List */
.bookings-list,
.zoom-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.booking-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.booking-info {
    flex: 1;
    min-width: 250px;
}

.booking-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.booking-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 14px;
}

.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-input {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Modal */
.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

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

form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-select {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.time-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.time-separator {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: var(--success-color);
    color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

.notification.show {
    display: block;
}

.notification.error {
    background: var(--danger-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Calendar */
.calendar-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.month-year {
    font-size: 18px;
    font-weight: 600;
    min-width: 150px;
    text-align: center;
}

.calendar-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.calendar-day-header:nth-child(1) {
    color: white !important;
}

.calendar-day-header:nth-child(7) {
    color: white !important;
}

.calendar-day {
    background: var(--card-bg);
    min-height: 120px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.calendar-day::after {
    content: '+';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 16px;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.2s;
}

.calendar-day:hover::after {
    opacity: 1;
}

.calendar-day:hover {
    background: #f3f4f6;
}

.calendar-day.other-month {
    background: #f9fafb;
    color: var(--text-secondary);
}

.calendar-day.today {
    background: #eff6ff;
}

.calendar-day.today .day-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.day-number {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.calendar-event {
    background: #e0e7ff;
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border-left: 3px solid var(--primary-color);
}

.calendar-event:hover {
    background: #c7d2fe;
    transform: translateX(2px);
}

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

.event-time {
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        margin-bottom: 20px;
    }

    header h1 {
        font-size: 22px;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-btn {
        flex: 1;
        min-width: 80px;
        font-size: 13px;
        padding: 8px 12px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .booking-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
    }

    .calendar-container {
        padding: 8px;
        overflow-x: auto;
    }

    .calendar-grid {
        min-width: 600px;
        gap: 0.5px;
    }

    .calendar-day {
        min-height: 65px;
        padding: 4px 2px;
        font-size: 11px;
        gap: 2px;
    }

    .calendar-day-header {
        padding: 6px 2px;
        font-size: 11px;
    }

    .day-number {
        font-size: 12px;
    }

    .holiday-label {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    .day-number-container {
        gap: 3px;
    }

    .calendar-event {
        font-size: 8px;
        padding: 1px 3px;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        margin-top: 2px;
    }

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

    .event-time {
        font-size: 7px;
    }
    
    .calendar-day.today .day-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .calendar-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .month-year {
        font-size: 16px;
        min-width: auto;
    }

    .btn-secondary {
        padding: 8px 12px;
        font-size: 13px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .page-header h2 {
        font-size: 18px;
    }
    
    .calendar-controls {
        margin-bottom: 12px;
    }

    .filter-group {
        flex-direction: column;
        width: 100%;
    }

    .filter-input {
        width: 100%;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .time-input-group {
        flex-wrap: wrap;
    }

    .time-select {
        min-width: 60px;
    }

    .notification {
        right: 10px;
        left: 10px;
        top: 10px;
        padding: 12px 16px;
        font-size: 13px;
    }

    .faq-container {
        padding: 16px;
    }

    .faq-question h3 {
        font-size: 14px;
    }

    .booking-details {
        font-size: 13px;
    }

    .booking-info h3 {
        font-size: 16px;
    }
}

/* FAQ 스타일 */
.faq-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    display: block !important;
    visibility: hidden;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 0 20px 0;
    display: block !important;
    visibility: visible;
}

.faq-answer p {
    margin: 8px 0;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 14px;
}

.faq-answer p:first-child {
    margin-top: 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
    transition: color 0.2s;
}

.faq-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 24px;
    text-align: center;
    color: #4b5563;
    font-size: 14px;
}

.footer p {
    margin: 0;
    color: #4b5563;
}

.footer a {
    color: #4b5563;
    text-decoration: none;
}

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

/* Calendar day colors */
.calendar-day.sunday .day-number,
.calendar-day.holiday .day-number {
    color: #ef4444;
}

.calendar-day.saturday .day-number {
    color: #2563eb;
}

/* Day number container */
.day-number-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.day-number {
    font-weight: 600;
}

/* Holiday label - 숫자 옆에 표시 */
.holiday-label {
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.2;
}

