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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 헤더 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3em;
}

.header h1 {
    font-size: 2.5em;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3em;
    font-weight: 400;
    opacity: 0.95;
}

/* 탭 메뉴 */
.tab-menu {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 18px;
    background: none;
    border: none;
    font-size: 1.1em;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #ffffff;
}

.tab-btn i {
    margin-right: 8px;
}

/* 탭 콘텐츠 */
.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

/* 정보 박스 */
.info-box {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-left: 4px solid #ff6b6b;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.info-box i {
    color: #ff6b6b;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.info-box p {
    margin: 8px 0;
    font-size: 1.05em;
}

.info-box strong {
    color: #d63031;
}

/* 폼 스타일 */
.reservation-form {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3436;
    font-size: 1.1em;
}

.form-group label i {
    color: #667eea;
    margin-right: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.05em;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* 버튼 */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.95em;
}

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

/* 필터 섹션 */
.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-section .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

/* 예약 목록 */
.reservations-list {
    display: grid;
    gap: 20px;
}

.reservation-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

.reservation-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reservation-card.cancelled {
    border-left-color: #dc3545;
    opacity: 0.7;
    background: #fff5f5;
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.reservation-date-time {
    font-size: 1.2em;
    font-weight: 700;
    color: #667eea;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.reservation-info {
    display: grid;
    gap: 10px;
}

.reservation-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05em;
}

.reservation-info i {
    color: #667eea;
    width: 20px;
}

.reservation-info strong {
    min-width: 100px;
    color: #495057;
}

/* 관리자 섹션 */
.admin-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.admin-info i {
    font-size: 3em;
    color: #0c5460;
    margin-bottom: 15px;
}

.admin-info h3 {
    font-size: 1.5em;
    color: #0c5460;
    margin-bottom: 15px;
}

.admin-info p {
    font-size: 1.1em;
    margin: 8px 0;
    color: #0c5460;
}

.admin-password-section {
    max-width: 500px;
    margin: 0 auto 30px;
}

.admin-panel {
    border-top: 2px solid #e9ecef;
    padding-top: 30px;
    margin-top: 30px;
}

.admin-panel h3 {
    font-size: 1.5em;
    color: #2d3436;
    margin-bottom: 20px;
}

.admin-panel h3 i {
    color: #667eea;
    margin-right: 10px;
}

.admin-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-filter input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
}

.admin-reservations-list {
    display: grid;
    gap: 20px;
}

.admin-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.admin-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* 푸터 */
.footer {
    background: #2d3436;
    color: #ffffff;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
}

.footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #ffffff;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 2em;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 40px 30px;
    text-align: center;
}

.modal-body i {
    font-size: 4em;
    margin-bottom: 20px;
}

.modal-body .fa-check-circle {
    color: #28a745;
}

.modal-body .fa-exclamation-circle {
    color: #ffc107;
}

.modal-body .fa-times-circle {
    color: #dc3545;
}

.modal-body h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2d3436;
}

.modal-body p {
    font-size: 1.1em;
    color: #6c757d;
    margin: 10px 0;
}

/* 로딩 텍스트 */
.loading-text {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.2em;
}

.loading-text i {
    color: #667eea;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4em;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1.1em;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
    }

    .header {
        padding: 20px 15px;
    }

    .logo i {
        font-size: 2em;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .tab-btn {
        padding: 15px 10px;
        font-size: 0.95em;
    }

    .tab-btn i {
        display: block;
        margin: 0 0 5px 0;
        font-size: 1.2em;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .filter-section {
        flex-direction: column;
    }

    .filter-section .form-group {
        width: 100%;
    }

    .filter-section .btn {
        width: 100%;
        justify-content: center;
    }

    .reservation-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .reservation-date-time {
        font-size: 1.1em;
    }

    .admin-filter {
        flex-direction: column;
    }

    .admin-filter input,
    .admin-filter .btn {
        width: 100%;
    }

    .admin-actions {
        flex-direction: column;
    }

    .admin-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .modal-body {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 1em;
    }

    .form-group label {
        font-size: 1em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 1em;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    .info-box {
        padding: 15px;
    }

    .info-box p {
        font-size: 0.95em;
    }
}
