/**
 * UNISPAZE - Modern Sidebar Layout Design
 * Path: /public/css/style.css
 * Updated: New UI/UX with Sidebar Navigation + Mobile Header
 */

/* ========================================
   CSS Variables - Blue Theme
   ======================================== */

:root {
    /* Primary Colors */
    --primary-600: #163362;
    --primary-700: #0f2749;
    --primary-500: #1d4079;
    --primary-400: #2563eb;
    --primary-300: #60a5fa;
    
    /* Accent Colors */
    --accent-500: #0ea5e9;
    --accent-600: #0284c7;
    --accent-400: #38bdf8;
    
    /* Semantic Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Layout */
    --sidebar-width: 210px;
    --header-height: 0px;
    --mobile-header-height: 60px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ========================================
   Global Styles
   ======================================== */

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

body {
    font-family: 'Poppins', "Noto Sans Thai", sans-serif;
    color: var(--gray-800);
    background: var(--gray-100);
    line-height: 1.6;
}

/* ========================================
   Layout Structure - Sidebar Layout
   ======================================== */

.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-logo img {
    width: 40px;
    height: 40px;
}

.sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-600);
    letter-spacing: 0.5px;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1 !important;
    padding: 1rem 0.5rem !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.sidebar-menu ul {
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.sidebar-menu-bottom {
    margin-top: auto !important;
}

.sidebar-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 150ms ease-in-out !important;
}

.sidebar-menu li a:hover {
    background: #f3f4f6 !important;
    color: #163362 !important;
}

.sidebar-menu li a.active {
    background: #163362 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(22, 51, 98, 0.2) !important;
}

.sidebar-menu li a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Sidebar User */
.sidebar-user {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-user-card:hover {
    background: var(--gray-100);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    flex-shrink: 0;
}

.sidebar-user-avatar.guest {
    background: var(--warning);
}

.sidebar-user-avatar.logged-in {
    background: var(--primary-600);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-status {
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 0;
}

/* ========================================
   Mobile Header - NEW
   ======================================== */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 999;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
}

.mobile-header-left,
.mobile-header-right {
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-header-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.mobile-header-logo img {
    width: 32px;
    height: 32px;
}

.mobile-header-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-600);
    letter-spacing: 0.5px;
}

.mobile-header-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-header-btn:hover {
    background: var(--gray-100);
}

.mobile-header-btn i {
    font-size: 1.25rem;
    color: var(--primary-600);
}

/* ========================================
   Hero Carousel
   ======================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-200);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.carousel-control:hover {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-control i {
    font-size: 1.2rem;
    color: var(--gray-700);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-indicator.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   Search Section
   ======================================== */

.search-section {
    background: #ffffff !important;
    padding: 2.5rem 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

.search-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.search-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 1.75rem !important;
    display: block !important;
}

.search-form {
    display: grid !important;
    gap: 1.5rem !important;
}

.search-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.25rem !important;
    align-items: end !important;
}

.search-row-time {
    display: grid !important;
    grid-template-columns: 1.2fr 1.2fr 0.8fr auto 0.8fr 200px !important;
    gap: 1.25rem !important;
    align-items: end !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: #4b5563 !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.01em !important;
}

.form-input,
.form-select {
    padding: 0.875rem 1.25rem !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 24px !important;
    font-family: 'Poppins', "Noto Sans Thai", sans-serif !important;
    font-size: 0.9rem !important;
    color: #374151 !important;
    background: #fff !important;
    transition: all 150ms ease-in-out !important;
    width: 100% !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.form-input:focus,
.form-select:focus {
    outline: none !important;
    border-color: #163362 !important;
    box-shadow: 0 0 0 3px rgba(22, 51, 98, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
}

.form-input::placeholder {
    color: #9ca3af !important;
    font-weight: 300 !important;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem !important;
}

/* Time Range Separator */
.time-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.time-separator i {
    color: var(--gray-400);
    font-size: 1.2rem;
}

/* ========================================
   Filter Popup/Modal
   ======================================== */

.filter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-in-out;
}

.filter-popup-overlay.active {
    display: flex;
}

.filter-popup {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    animation: slideUp 0.3s ease-out !important;
}

.filter-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-popup-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.filter-popup-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.filter-popup-close:hover {
    background: var(--gray-200);
}

.filter-popup-close i {
    font-size: 1.1rem;
    color: var(--gray-600);
}

/* Filter Options */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.filter-checkbox {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 150ms ease-in-out !important;
}

.filter-checkbox:checked {
    background: #163362 !important;
    border-color: #163362 !important;
}

.filter-label {
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* ========================================
   Room Cards Grid
   ======================================== */

.rooms-section {
    padding: 0 2rem 2rem;
}

.rooms-container {
    max-width: 1400px;
    margin: 0 auto;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.room-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 300ms ease-in-out !important;
    cursor: pointer !important;
}

.room-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-4px) !important;
}

.room-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.room-card:hover .room-card-image img {
    transform: scale(1.05);
}

.room-card-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: #163362 !important;
    color: #ffffff !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(22, 51, 98, 0.3) !important;
}

.room-card-content {
    padding: 1.25rem;
}

.room-card-header {
    margin-bottom: 0.75rem;
}

.room-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.room-card-category {
    font-size: 0.8rem;
    color: var(--gray-500);
    background: var(--gray-100);
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}

.room-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.room-card-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.room-card-detail i {
    color: var(--gray-400);
    width: 16px;
}

.room-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.room-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-600);
}

.room-card-price-unit {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-500);
}

/* ========================================
   Modal System
   ======================================== */

.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3000 !important;
    animation: fadeIn 0.2s ease-in-out !important;
    padding: 1rem !important;
}

.modal-overlay.active {
    display: flex !important;
}

.modal {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    max-width: 700px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    animation: slideUp 0.3s ease-out !important;
    position: relative !important;
}

.login-register-modal {
    max-width: 400px !important;
    padding: 2rem !important;
}

.profile-modal {
    max-width: 800px !important;
}

.modal-close-btn {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    background: #f3f4f6 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 150ms ease-in-out !important;
    z-index: 1 !important;
}

.modal-close-btn:hover {
    background: #e5e7eb !important;
    transform: rotate(90deg) !important;
}

.modal-close-btn i {
    font-size: 1.25rem !important;
    color: #6b7280 !important;
}

.modal-header {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
}

.modal-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}

.modal-logo img {
    width: 40px !important;
    height: 40px !important;
}

.modal-logo-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #163362 !important;
}

.modal-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.4 !important;
}

.modal-subtitle {
    font-size: 0.85rem !important;
    color: #6b7280 !important;
}

.modal-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 auto 1.5rem !important;
}

.modal-avatar.guest {
    background: #dc2626 !important;
}

.modal-avatar.user {
    background: #163362 !important;
}

/* Alert Styles */
.alert {
    display: none !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.alert.show {
    display: flex !important;
}

.alert-error {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

.alert-success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

/* Google Sign-in Button */
.btn-google {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    padding: 0.875rem 1.5rem !important;
    background: #ffffff !important;
    color: #374151 !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 50px !important;
    font-family: 'Poppins', "Noto Sans Thai", sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 200ms ease-in-out !important;
}

.btn-google:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.google-icon {
    width: 20px !important;
    height: 20px !important;
}

.modal-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.modal-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
}

.modal-input {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 24px !important;
    font-family: 'Poppins', "Noto Sans Thai", sans-serif !important;
    font-size: 0.9rem !important;
    background: #f9fafb !important;
    transition: all 150ms ease-in-out !important;
}

.modal-input:focus {
    outline: none !important;
    border-color: #163362 !important;
    box-shadow: 0 0 0 3px rgba(22, 51, 98, 0.08) !important;
    background: #ffffff !important;
}

.modal-input:disabled {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

.modal-input-icon {
    position: relative !important;
}

.modal-input-icon input {
    padding-right: 2.5rem !important;
}

.modal-input-icon i {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    font-size: 0.875rem !important;
}

.modal-footer {
    margin-top: 1.5rem !important;
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
}

.modal-footer .btn {
    flex: 1 !important;
    max-width: 150px !important;
}

.modal-divider {
    text-align: center !important;
    margin: 1.5rem 0 !important;
    position: relative !important;
}

.modal-divider::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: #e5e7eb !important;
}

.modal-divider span {
    background: #ffffff !important;
    padding: 0 1rem !important;
    position: relative !important;
    z-index: 1 !important;
    color: #6b7280 !important;
    font-size: 0.85rem !important;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    padding: 0.875rem 2rem !important;
    border: none !important;
    border-radius: 50px !important;
    font-family: 'Poppins', "Noto Sans Thai", sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 150ms ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

.btn-primary {
    background: #163362 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #0f2749 !important;
    box-shadow: 0 4px 16px rgba(22, 51, 98, 0.3) !important;
    transform: translateY(-1px) !important;
}

.btn-secondary {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.btn-secondary:hover {
    background: #e5e7eb !important;
    transform: translateY(-1px) !important;
}

.btn-block {
    width: 100% !important;
    display: flex !important;
}

.btn-outline {
    background: var(--white);
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-outline:hover {
    background: var(--primary-600);
    color: var(--white);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--primary-600);
    color: var(--white);
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-copyright strong {
    color: var(--white);
    font-weight: 600;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-600);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ========================================
   Utility Classes
   ======================================== */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.text-primary { color: var(--primary-600); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gray { color: var(--gray-500); }

/* ========================================
   Desktop Mobile Toggle (Hidden by default)
   ======================================== */

.mobile-toggle {
    display: none;
}

/* ========================================
   Responsive Design - MOBILE FIRST
   ======================================== */

@media (max-width: 768px) {
    /* Show Mobile Header */
    .mobile-header {
        display: flex;
    }
    
    /* Hide Desktop Sidebar */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Sidebar Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Main wrapper adjustments */
    .main-wrapper {
        margin-left: 0;
        padding-top: var(--mobile-header-height);
    }
    
    /* Hero Section - Mobile Style with Padding & Border Radius */
    .hero-carousel {
        height: auto !important;
        min-height: 180px;
        padding: 1rem !important;
        background: var(--gray-100);
    }
    
    .carousel-container {
        border-radius: 16px;
        overflow: hidden;
    }
    
    .carousel-slide img {
        border-radius: 16px;
    }
    
    .carousel-control {
        width: 32px;
        height: 32px;
    }
    
    .carousel-control.prev {
        left: 1.5rem;
    }
    
    .carousel-control.next {
        right: 1.5rem;
    }
    
    .carousel-control i {
        font-size: 0.9rem;
    }
    
    /* Search Section - Mobile Card Style */
    .search-section {
        background: var(--gray-100) !important;
        padding: 0 1rem 1.5rem !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
    }
    
    .search-container {
        background: var(--white);
        border-radius: 20px;
        padding: 1.5rem;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .search-title {
        font-size: 1.1rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .search-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .search-row-time {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .time-separator {
        display: none;
    }
    
    .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .form-input,
    .form-select {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
    }
    
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .btn-block {
        width: 100% !important;
    }
    
    /* Rooms Section */
    .rooms-section {
        padding: 1rem 1rem 1.5rem;
        background: var(--gray-100);
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .room-card {
        border-radius: 16px !important;
    }
    
    .room-card-image {
        height: 160px;
    }
    
    /* Modal - Mobile Responsive */
    .modal-overlay {
        padding: 0.5rem !important;
        align-items: center !important;
    }
    
    .modal {
        padding: 1.5rem !important;
        border-radius: 20px !important;
        width: 95% !important;
        max-height: 85vh !important;
    }
    
    .login-register-modal {
        max-width: 100% !important;
        width: 92% !important;
        padding: 1.5rem !important;
    }
    
    .modal-close-btn {
        top: 1rem !important;
        right: 1rem !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .modal-header {
        margin-bottom: 1.25rem !important;
    }
    
    .modal-logo {
        margin-bottom: 0.75rem !important;
    }
    
    .modal-logo img {
        width: 36px !important;
        height: 36px !important;
    }
    
    .modal-logo-text {
        font-size: 1.25rem !important;
    }
    
    .modal-title {
        font-size: 1rem !important;
    }
    
    .modal-subtitle {
        font-size: 0.8rem !important;
    }
    
    .btn-google {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
        gap: 0.5rem !important;
    }
    
    .google-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .modal-form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer - Mobile */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    /* Back to top - Mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .mobile-header {
        padding: 0 0.75rem;
    }
    
    .mobile-header-logo-text {
        font-size: 1rem;
    }
    
    .hero-carousel {
        padding: 0.75rem;
    }
    
    .search-container {
        padding: 1.25rem;
    }
    
    .search-title {
        font-size: 1rem !important;
    }
    
    .modal {
        padding: 1.25rem !important;
    }
    
    .login-register-modal {
        padding: 1.25rem !important;
    }
}

/* Desktop and Tablet */
@media (min-width: 769px) {
    .mobile-header {
        display: none !important;
    }
    
    .sidebar {
        transform: translateX(0) !important;
    }
}

@media (min-width: 1200px) {
    .search-container,
    .rooms-container,
    .footer-container {
        max-width: 95%;
    }
}