:root {
    --maroon-primary: #800000;
    --maroon-dark: #5C0000;
    --maroon-light: #8B0000;
    --gold: #B8860B;
    --gold-light: #DAA520;
    --text-dark: #2C2C2C;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --border-light: #E0E0E0;
    --success: #28A745;
    --danger: #DC3545;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--bg-white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text h1 {
    font-family: 'Crimson Text', serif;
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 400;
}

.header-actions .btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    border: 1.5px solid var(--maroon-primary);
    background: transparent;
    color: var(--maroon-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
}

.btn-login:hover {
    background: var(--maroon-primary);
    color: white;
}

.hero-section {
    background-image: url('/images/pup.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 400px;
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-family: 'Crimson Text', serif;
    font-size: 48px;
    color: white;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-content h3 {
    font-family: 'Crimson Text', serif;
    font-size: 36px;
    color: white;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 18px;
    color: white;
    line-height: 1.6;
    margin-bottom: 8px;
}

.hero-section::before {
content: '';
position: absolute;
inset: 0;
background: rgba(160, 12, 12, 0.55); /* 0 = transparent, 1 = fully black */
z-index: 0;
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Crimson Text', serif;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-light);
    justify-content: center;
}

.tab-btn {
    padding: 14px 32px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    font-family: 'Lato', sans-serif;
}

.tab-btn.active {
    color: var(--maroon-primary);
    border-bottom-color: var(--maroon-primary);
}

.tab-btn:hover {
    color: var(--maroon-primary);
}

.tab-content {
    display: none;
}

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

/* Floor Cards Grid */
.floors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.floor-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.floor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--maroon-primary);
}

.floor-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.floor-icon {
    width: 48px;
    height: 48px;
    background: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.floor-title {
    font-family: 'Crimson Text', serif;
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 700;
}

.room-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.room-code {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.room-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.room-status.available {
    color: var(--success);
}

.room-status.occupied {
    color: var(--danger);
}

.room-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.view-rooms-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: transparent;
    border: 1.5px solid var(--maroon-primary);
    color: var(--maroon-primary);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
}

.view-rooms-btn:hover {
    background: var(--maroon-primary);
    color: white;
}

/* Filters */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control {
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--maroon-primary);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232C2C2C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
}

.btn-primary {
    background: var(--maroon-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--maroon-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
}

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

.room-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.room-card:hover {
    border-color: var(--maroon-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.room-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--maroon-primary), var(--maroon-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-card-image h3 {
    color: var(--gold);
    font-size: 32px;
    font-weight: 700;
    font-family: 'Crimson Text', serif;
}

.room-card h4 {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.room-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.room-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-info i {
    color: var(--gold);
    width: 16px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.badge-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.active-booking {
    margin-top: 12px;
    padding: 12px;
    background: rgba(184, 134, 11, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
}

.active-booking-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-booking-header i {
    font-size: 8px;
}

.active-booking-content {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.5;
}

.active-booking-content .title {
    font-weight: 600;
    margin-bottom: 4px;
}

.active-booking-content div {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    font-size: 12px;
}

.active-booking-content i {
    width: 14px;
    color: var(--gold);
}

/* Calendar */
.calendar-container {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.fc {
    --fc-border-color: var(--border-light);
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: var(--bg-light);
    --fc-today-bg-color: rgba(128, 0, 0, 0.05);
}

.fc .fc-toolbar-title {
    color: var(--text-dark) !important;
    font-family: 'Crimson Text', serif !important;
    font-size: 24px !important;
}

.fc .fc-button {
    background: white !important;
    border-color: var(--border-light) !important;
    color: var(--text-gray) !important;
}

.fc .fc-button:hover,
.fc .fc-button-active {
    background: var(--maroon-primary) !important;
    color: white !important;
    border-color: var(--maroon-primary) !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    font-family: 'Crimson Text', serif;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.modal-body {
    padding: 28px;
}

.detail-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    width: 140px;
    flex-shrink: 0;
}

.detail-value {
    color: var(--text-gray);
}

.bookings-list {
    margin-top: 24px;
}

.bookings-list h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-item {
    padding: 14px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--maroon-primary);
}

.booking-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 6px;
}

.booking-item small {
    display: block;
    color: var(--text-gray);
    margin-bottom: 2px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-gray);
}

/* Footer */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 40px 40px 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h3 {
    font-family: 'Crimson Text', serif;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.footer-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.footer-content small {
    font-size: 14px;
    color: var(--text-light);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-wrapper nav .pagination {
    display: flex;
    list-style: none;
    gap: 6px;
}

.pagination-wrapper nav .pagination li span,
.pagination-wrapper nav .pagination li a {
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-gray);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-wrapper nav .pagination li.active span {
    background: var(--maroon-primary);
    color: white;
    border-color: var(--maroon-primary);
}

.pagination-wrapper nav .pagination li a:hover {
    background: var(--bg-light);
    color: var(--maroon-primary);
    border-color: var(--maroon-primary);
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content h3 {
        font-size: 28px;
    }

    .container {
        padding: 40px 20px;
    }

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

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

    .filters-bar {
        flex-direction: column;
    }

    .form-control {
        width: 100%;
    }

    .tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-btn {
        border-bottom: 1px solid var(--border-light);
        border-left: 3px solid transparent;
        text-align: left;
        padding: 12px 20px;
    }

    .tab-btn.active {
        border-left-color: var(--maroon-primary);
        border-bottom-color: var(--border-light);
    }
}
