html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}


body.dark-mode, 
body.dark-mode section, 
body.dark-mode .bg-light, 
body.dark-mode .bg-white {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .card, 
body.dark-mode .modal-content, 
body.dark-mode .sticky-top,
body.dark-mode .footer,
body.dark-mode footer {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border-color: #333 !important;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6,
body.dark-mode .card-title {
    color: #ffffff !important;
}

body.dark-mode .text-muted,
body.dark-mode p {
    color: #b0b0b0 !important;
}

body.dark-mode .nav-link {
    color: #e0e0e0 !important;
}

body.dark-mode .form-control,
body.dark-mode select {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
    color: #fff !important;
}

body.dark-mode .btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}
/* Components */
.room-card, .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    overflow: hidden;
    border-radius: 15px;
}

.room-card:hover, .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
}

.btn-primary {
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    filter: brightness(1.1);
}

.nav-link {
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0d6efd !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.fa-heart {
    transition: all 0.2s ease;
    cursor: pointer;
}

.fa-heart.fa-solid {
    color: #dc3545 !important;
    animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}

.form-control {
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
    background-color: #fff;
}

.modal-content {
    border: none;
    border-radius: 20px;
}

.search-box {
    transform: translateY(30px);
    z-index: 10;
    position: relative;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: #baceda;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d6efd;
}

.sticky-top {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}
.pagination .page-link {
    background-color: #fff;
    color: #0d6efd;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #6c757d;
}

body.dark-mode .pagination .page-link {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

body.dark-mode .pagination .page-item.disabled .page-link {
    background-color: #1a1a1a;
    color: #666;
    border-color: #333;
}

.pagination .page-link:hover:not(.active) {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

body.dark-mode .pagination .page-link:hover:not(.active) {
    background-color: #3d3d3d;
}
.card-body h4 {
    color: #0d6efd;
    position: relative;
    display: inline-block;
}


@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.room-card {
    animation: fadeInUp 0.6s ease-out forwards;
}
/* CSS dành riêng cho trang Admin */
.admin-body {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9 !important;
}

.admin-sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.admin-content {
    flex-grow: 1;
    margin-left: 260px; 
    padding: 30px;
}

.hover-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1 !important;
}

.active-menu {
    background-color: #0d6efd;
    border-radius: 8px;
    margin: 0 15px;
    padding-left: 15px !important;
}


@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }
    .admin-content {
        margin-left: 0;
        padding: 15px;
    }
}
.card-phong {
    transition: transform 0.3s ease;
}
.card-phong:hover {
    transform: translateY(-5px);
}
.img-zoom {
    transition: transform 0.5s ease;
}
.card-phong:hover .img-zoom {
    transform: scale(1.1);
}
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 10px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}
@keyframes shine {
    to { background-position-x: -200%; }
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: rgba(13, 110, 253, 0.8);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(13, 110, 253, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

.dark-mode .back-to-top {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}