﻿/* style.css */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    /*min-height: 100vh;*/
    margin: 0;
    background-image: url("../../../Areas/Admin/assets/img/d5_2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    flex-direction: column;
}

.header-brand {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #da251d; /* Màu đỏ của trường */
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

        .header-main {
            display: flex;
            align-items: center;
            justify-content: center;
            max-width: 1000px;
            margin: 0 auto;
            gap: 20px;
            padding: 0 15px;
        }

        .logo-img {
            height: 80px; /* Tăng giảm tùy ý */
            width: auto;
        }

        .header-text {
            text-align: left;
        }

        .school-name {
            font-size: 1.4rem;
            font-weight: bold;
            color: #0054a5; /* Màu xanh của trường */
            margin-bottom: 5px;
            text-transform: uppercase;
        }

        .form-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #da251d;
        }

        /* Responsive cho mobile */
        @media (max-width: 600px) {
            .header-main {
                flex-direction: column;
                text-align: center;
            }
            .header-text {
                text-align: center;
            }
            .school-name {
                font-size: 1.1rem;
            }
            .form-title {
                font-size: 1rem;
            }
        }

.container {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Tab Header */
.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    cursor: pointer;
    background: #f8f9fa;
    color: #666;
    font-weight: bold;
    transition: 0.3s;
}

    .tab-btn:hover {
        background: #eee;
    }

    .tab-btn.active {
        background: #fff;
        color: #27ae60;
        border-bottom: 3px solid #27ae60;
    }

/* Tab Content */
.tab-content {
    display: none;
    padding: 30px;
    animation: fadeEffect 0.5s;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Common Styles */
h2 {
    text-align: center;
    color: #2c3e50;
    margin-top: 0;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.radio-group {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    gap: 20px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-reg {
    background: #27ae60;
}

.btn-search {
    background: #3498db;
}

/* Container chứa 2 lựa chọn */
.booking-options {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

    /* Ẩn radio button mặc định */
    .booking-options input[type="radio"] {
        display: none;
    }

/* Thiết kế thẻ label thành nút bấm */
.option-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    background-color: #fff;
}

/* Vòng tròn nhỏ giả lập radio bên trong (tùy chọn) */
.dot {
    height: 12px;
    width: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    transition: all 0.3s;
}

/* Hiệu ứng khi được chọn (Checked) */
.booking-options input[type="radio"]:checked + .option-item {+
    border-color: #27ae60;
    background-color: #f0fdf4;
    color: #27ae60;
}

    .booking-options input[type="radio"]:checked + .option-item .dot {
        background-color: #27ae60;
        box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.2);
    }

/* Hiệu ứng hover nhẹ */
.option-item:hover {
    border-color: #27ae60;
    background-color: #fafafa;
}

.date-selection {
    animation: slideDown 0.3s ease-out;
    margin-top: 15px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tùy chỉnh input date cho đẹp hơn */
input[type="date"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    font-family: inherit;
}

#display_ma_dat_phong {
    display: block;
    background: #fff;
    border: 2px dashed #dc3545;
    padding: 10px;
    margin: 10px 0;
    font-family: 'Courier New', Courier, monospace;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.btn-danger {
    background-color: orangered;
}

#wrapper_ngay_tra {
    display: none;
}

.required-star {
    color: red;
    margin-left: 3px;
}