﻿﻿/* ===== AGENT DASHBOARD STYLES ===== */

/* Fix for layout stability */
.container-fluid {
    min-height: 100vh;
    position: relative;
}

/* Prevent footer movement during scroll */
body {
    overflow-x: hidden;
}

.main-content {
    min-height: calc(100vh - 60px);
    padding-bottom: 2rem;
}

/* Welcome Card with Hostel Background - Extra Compact */
.welcome-card {
    background: linear-gradient(135deg, rgba(0, 166, 255, 0.8) 0%, rgba(0, 119, 179, 0.85) 100%),
                url('https://images.unsplash.com/photo-1555854877-bab0e564b8d5?w=1400&h=300&fit=crop&crop=center') center/cover;
    border-radius: 12px;
    padding: 1rem;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 166, 255, 0.2);
    overflow: hidden;
    position: relative;
    min-height: 120px;
    max-height: 140px;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}



.welcome-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.welcome-text {
    flex: 1;
    margin-right: 2rem;
}

.welcome-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.welcome-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.6rem;
}

.welcome-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-item i {
    font-size: 1rem;
}

.welcome-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-item i {
    font-size: 1rem;
}

.welcome-animation {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.welcome-animation:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Lottie animation styling */
.welcome-animation .lottie-container {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* Legacy support for welcome-image class */
.welcome-image {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Quick Stats Cards */
.stat-card {
    background: transparent;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, var(--primary-blue, #00A6FF), var(--light-blue, #80D3FF));
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

/* Colorful stat card backgrounds - matching Tenant design */
.stat-card-primary {
    background: linear-gradient(135deg, rgba(0, 166, 255, 0.1) 0%, rgba(128, 211, 255, 0.05) 100%);
    border: 1px solid rgba(0, 166, 255, 0.2);
}

.stat-card-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.05) 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.stat-card-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(253, 126, 20, 0.05) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.stat-card-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(111, 66, 193, 0.05) 100%);
    border: 1px solid rgba(23, 162, 184, 0.2);
}

/* Enhanced hover effects for colorful stat cards */
.stat-card-primary:hover {
    background: linear-gradient(135deg, rgba(0, 166, 255, 0.15) 0%, rgba(128, 211, 255, 0.08) 100%);
    border-color: rgba(0, 166, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 166, 255, 0.15);
}

.stat-card-success:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.08) 100%);
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.15);
}

.stat-card-warning:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(253, 126, 20, 0.08) 100%);
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.15);
}

.stat-card-info:hover {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.15) 0%, rgba(111, 66, 193, 0.08) 100%);
    border-color: rgba(23, 162, 184, 0.3);
    box-shadow: 0 8px 30px rgba(23, 162, 184, 0.15);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222222;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666666;
    margin: 0.25rem 0 0 0;
    font-weight: 500;
}

/* Dashboard Cards */
.dashboard-card {
    background: transparent !important;
    border-radius: 16px;
    box-shadow: none;
    border: none;
    overflow: hidden;
}

.dashboard-card .card-header {
    background: transparent !important;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222222;
    margin: 0;
    display: flex;
    align-items: center;
}

.dashboard-card .card-title i {
    color: var(--primary-blue, #00A6FF);
    margin-right: 0.5rem;
}

.dashboard-card .card-actions {
    margin-left: auto;
}

/* View All Button Styling */
.dashboard-card .btn-outline-primary {
    border: 1.5px solid var(--primary-blue, #00A6FF);
    color: var(--primary-blue, #00A6FF);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dashboard-card .btn-outline-primary:hover {
    background: var(--primary-blue, #00A6FF);
    color: #ffffff;
    border-color: var(--primary-blue, #00A6FF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 166, 255, 0.3);
}

.dashboard-card .btn-outline-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 166, 255, 0.2);
}

/* Add icon to View All buttons */
.dashboard-card .btn-outline-primary::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dashboard-card .btn-outline-primary:hover::after {
    transform: translateX(2px);
}

/* Card Header Enhancements */
.dashboard-card .card-header {
    position: relative;
    overflow: hidden;
}

.dashboard-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue, #00A6FF), var(--light-blue, #80D3FF));
    z-index: 1;
}

/* Improved spacing and typography */
.dashboard-card .card-title {
    position: relative;
    z-index: 2;
}

.dashboard-card .card-actions {
    position: relative;
    z-index: 2;
}

/* Enhanced hover effect for entire card */
.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-header::before {
    width: 6px;
    transition: width 0.3s ease;
}

.dashboard-card .card-body {
    background: transparent !important;
    padding: 1.5rem;
}

/* ===== CARD HEADER LAYOUT FIXES ===== */
.dashboard-card .card-header .d-flex {
    width: 100%;
    gap: 1rem;
}

.dashboard-card .header-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-card .header-content .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.dashboard-card .header-content .card-title i {
    color: var(--primary-blue, #00A6FF);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.dashboard-card .header-content small {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.dashboard-card .header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.dashboard-card .header-actions .btn {
    font-weight: 600;
    border-width: 2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin: 0;
}

.dashboard-card .header-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 166, 255, 0.3);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(233, 236, 239, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: rgba(248, 249, 250, 0.3);
    border-color: rgba(222, 226, 230, 0.5);
    transform: translateX(4px);
    color: inherit;
    text-decoration: none;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 0.25rem;
}

.action-subtitle {
    font-size: 0.8rem;
    color: #666666;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ===== ENHANCED BOOKING TABLE STYLES ===== */
/* Desktop booking table enhancements */
.desktop-booking-table .booking-thumb-enhanced {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #f8f9fa;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.desktop-booking-table .booking-row:hover .booking-thumb-enhanced {
    border-color: #00A6FF;
    transform: scale(1.05);
}

.desktop-booking-table .booking-row {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.desktop-booking-table .booking-row:hover {
    background-color: rgba(248, 249, 250, 0.3);
    border-left-color: #00A6FF;
    transform: translateX(2px);
}

.booking-status-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-status-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desktop-booking-table th {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.desktop-booking-table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

/* Legacy booking table styles */
.booking-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.table-hover tbody tr:hover {
    background-color: rgba(248, 249, 250, 0.3);
}

/* Announcements */
.announcement-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.announcement-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.announcement-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue, #00A6FF);
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 0.25rem;
}

.announcement-text {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.announcement-date {
    font-size: 0.75rem;
    color: #999999;
}

/* Mobile-Only Welcome Section - Clean & Simple Design */
@media (max-width: 768px) {
    /* Transform welcome content for mobile */
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    /* Hide animation/image on mobile */
    .welcome-animation,
    .welcome-image {
        display: none;
    }

    /* Mobile welcome card - more compact */
    .welcome-card {
        padding: 1rem;
        min-height: 100px;
        max-height: 120px;
    }

    /* Mobile welcome text - centered and compact */
    .welcome-text {
        margin: 0;
        width: 100%;
    }

    .welcome-title {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
    }

    .welcome-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        opacity: 0.95;
    }

    /* Mobile stats - horizontal pills */
    .welcome-stats {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }

    .stat-item {
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.2);
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        white-space: nowrap;
        color: white;
        display: flex;
        align-items: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .stat-item i {
        font-size: 0.8rem;
        margin-right: 0.3rem;
        opacity: 0.9;
    }

    /* Dark theme support for welcome stats */
    [data-bs-theme="dark"] .stat-item {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #e2e8f0;
    }
}

/* Extra Small Mobile - Ultra Compact */
@media (max-width: 480px) {
    .welcome-card {
        padding: 0.8rem;
        min-height: 90px;
        max-height: 110px;
    }

    .welcome-title {
        font-size: 1.1rem;
    }

    .welcome-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .welcome-stats {
        gap: 0.4rem;
    }

    .stat-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .stat-item i {
        font-size: 0.7rem;
    }
}



/* ===== MOBILE LAYOUT (PHONES ONLY) ===== */
@media (max-width: 767.98px) {
    .stat-card {
        padding: 0.8rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Fix text overflow for stat cards */
    .stat-content {
        min-width: 0;
        flex: 1;
    }

    /* Shorter text for mobile stat cards using column targeting */
    .row.g-3 .col-6:nth-child(1) .stat-label::after {
        content: "Properties";
        display: block;
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .row.g-3 .col-6:nth-child(1) .stat-label {
        font-size: 0 !important;
    }

    .row.g-3 .col-6:nth-child(2) .stat-label::after {
        content: "Bookings";
        display: block;
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .row.g-3 .col-6:nth-child(2) .stat-label {
        font-size: 0 !important;
    }

    .row.g-3 .col-6:nth-child(3) .stat-label::after {
        content: "Pending";
        display: block;
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .row.g-3 .col-6:nth-child(3) .stat-label {
        font-size: 0 !important;
    }

    .row.g-3 .col-6:nth-child(4) .stat-label::after {
        content: "Revenue";
        display: block;
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .row.g-3 .col-6:nth-child(4) .stat-label {
        font-size: 0 !important;
    }
    
    .dashboard-card .card-header {
        padding: 1rem;
    }

    .dashboard-card .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dashboard-card .header-content .card-title {
        font-size: 1.1rem;
    }

    .dashboard-card .header-content small {
        font-size: 0.8rem;
    }

    .dashboard-card .header-actions {
        align-self: flex-end;
        width: auto;
    }

    .dashboard-card .header-actions .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.8rem;
    }

    .dashboard-card .btn-outline-primary::after {
        font-size: 0.7rem;
    }

    .dashboard-card .card-body {
        padding: 1rem;
    }
    
    .quick-action-btn {
        padding: 0.75rem;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .announcement-item {
        gap: 0.75rem;
    }
    
    .announcement-icon {
        width: 35px;
        height: 35px;
    }

    /* ===== MOBILE LAYOUT FIX FOR RECENT BOOKINGS ===== */
    /* Target the specific dashboard row structure */

    /* Force recent bookings to be visible and prioritized on mobile */
    .row.g-4 {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Reorder columns on mobile - recent bookings first */
    .row.g-4 .col-lg-8 {
        order: 1 !important;
        margin-bottom: 2rem !important;
    }

    .row.g-4 .col-lg-4 {
        order: 2 !important;
    }

    /* Force dashboard cards to be visible */
    .dashboard-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 1.5rem !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0.375rem !important;
        box-shadow: none !important;
    }

    /* HIDE original table on mobile - we'll use custom list instead */
    .desktop-booking-table {
        display: none !important;
    }

    /* ===== ENHANCED MOBILE BOOKING LIST ===== */
    .mobile-booking-list {
        display: block !important;
        padding: 0 !important;
    }

    /* Enhanced mobile booking card */
    .mobile-booking-card {
        background: transparent !important;
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
        box-shadow: none !important;
        border: 1px solid rgba(240, 240, 240, 0.3) !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }

    .mobile-booking-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        transform: translateY(-1px) !important;
    }

    .mobile-booking-card:last-child {
        margin-bottom: 0 !important;
    }

    /* Header section with image, title, and amount */
    .mobile-booking-header {
        display: flex !important;
        align-items: flex-start !important;
        padding: 1.25rem !important;
        border-bottom: 1px solid #f8f9fa !important;
    }

    .mobile-booking-thumb-enhanced {
        width: 60px !important;
        height: 60px !important;
        border-radius: 10px !important;
        object-fit: cover !important;
        margin-right: 1rem !important;
        flex-shrink: 0 !important;
        border: 2px solid #f8f9fa !important;
        background-color: #f8f9fa !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .mobile-booking-thumb-enhanced.placeholder {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        color: #6c757d !important;
        font-size: 1.5rem !important;
    }

    .mobile-booking-thumb-enhanced img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .mobile-booking-main-info {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .mobile-booking-title {
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        color: #222222 !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }

    .mobile-booking-reference {
        font-size: 0.8rem !important;
        color: #6c757d !important;
        margin-bottom: 0.5rem !important;
        font-weight: 500 !important;
    }

    .mobile-booking-room-info {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        font-size: 0.85rem !important;
    }

    .mobile-booking-room-info .room-name {
        font-weight: 600 !important;
        color: #495057 !important;
    }

    .mobile-booking-room-info .separator {
        color: #dee2e6 !important;
    }

    .mobile-booking-room-info .bed-name {
        color: #6c757d !important;
    }

    .mobile-booking-amount-section {
        text-align: right !important;
        flex-shrink: 0 !important;
    }

    .mobile-booking-amount {
        font-weight: 700 !important;
        font-size: 1.2rem !important;
        color: #00A6FF !important;
        margin-bottom: 0.25rem !important;
    }

    .mobile-booking-per-day {
        font-size: 0.75rem !important;
        color: #6c757d !important;
        font-weight: 500 !important;
    }

    /* Details section */
    .mobile-booking-details-section {
        padding: 1rem 1.25rem !important;
        background: rgba(250, 251, 252, 0.3) !important;
        border-bottom: 1px solid rgba(248, 249, 250, 0.3) !important;
    }

    .mobile-booking-detail-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 0.75rem !important;
    }

    .mobile-booking-detail-item:last-child {
        margin-bottom: 0 !important;
    }

    .mobile-booking-detail-item .detail-label {
        font-size: 0.8rem !important;
        color: #6c757d !important;
        font-weight: 500 !important;
    }

    .mobile-booking-detail-item .detail-value {
        font-size: 0.85rem !important;
        color: #495057 !important;
        font-weight: 600 !important;
    }

    /* Status section */
    .mobile-booking-status-section {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem 1.25rem !important;
        background: transparent !important;
        border-bottom: 1px solid #f8f9fa !important;
    }

    .status-group {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .status-group-center {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .status-label {
        font-size: 0.8rem !important;
        color: #6c757d !important;
        font-weight: 500 !important;
    }

    .mobile-booking-status,
    .mobile-payment-status {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
        border-radius: 6px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* Footer section */
    .mobile-booking-footer {
        padding: 0.75rem 1.25rem !important;
        background: rgba(250, 251, 252, 0.3) !important;
        text-align: center !important;
    }

    .mobile-booking-footer small {
        font-size: 0.75rem !important;
        color: #6c757d !important;
    }

    /* Loading and empty states for mobile list */
    .mobile-booking-loading,
    .mobile-booking-empty,
    .mobile-booking-error {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2rem 1rem !important;
        text-align: center !important;
        color: #6c757d !important;
    }

    .mobile-booking-loading i,
    .mobile-booking-empty i,
    .mobile-booking-error i {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }

    .mobile-booking-error {
        color: #dc3545 !important;
    }

    /* Card header styling */
    .dashboard-card .card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem !important;
        background-color: rgba(248, 249, 250, 0.3) !important;
        border-bottom: 1px solid rgba(222, 226, 230, 0.3) !important;
    }

    /* Card body styling */
    .dashboard-card .card-body {
        display: block !important;
        padding: 0 !important;
    }

    /* Booking thumbnails */
    .booking-thumb {
        width: 40px !important;
        height: 40px !important;
        border-radius: 0.25rem !important;
        object-fit: cover !important;
    }
}

/* ===== TABLET LAYOUT (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Use desktop table layout for tablets */
    .desktop-booking-table {
        display: block !important;
    }

    /* Hide mobile list on tablets */
    .mobile-booking-list {
        display: none !important;
    }

    /* Restore normal column order for tablets */
    .row.g-4 {
        display: flex !important;
        flex-direction: row !important;
    }

    .row.g-4 .col-lg-8,
    .row.g-4 .col-lg-4 {
        order: unset !important;
    }

    /* Tablet-specific table optimizations */
    .desktop-booking-table .booking-thumb-enhanced {
        width: 45px !important;
        height: 45px !important;
    }

    .desktop-booking-table th {
        font-size: 0.8rem !important;
        padding: 0.75rem 0.5rem !important;
    }

    .desktop-booking-table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem !important;
    }

    .booking-status-badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    /* Adjust card header for tablets */
    .dashboard-card .header-content .card-title {
        font-size: 1.15rem !important;
    }

    .dashboard-card .header-content small {
        font-size: 0.8rem !important;
    }

    .dashboard-card .header-actions .btn {
        font-size: 0.8rem !important;
        padding: 0.375rem 0.75rem !important;
    }

    /* Tablet-specific table improvements */
    .desktop-booking-table .table {
        font-size: 0.85rem !important;
    }

    /* Better spacing for tablet table cells */
    .desktop-booking-table td div {
        line-height: 1.3 !important;
    }

    .desktop-booking-table td small {
        font-size: 0.75rem !important;
    }

    /* Adjust amount display for tablets */
    .desktop-booking-table td .fw-bold {
        font-size: 0.95rem !important;
    }

    /* Better button sizing for tablets */
    .dashboard-card .card-header .btn {
        font-size: 0.8rem !important;
        padding: 0.375rem 0.75rem !important;
    }

    /* Optimize row hover effects for tablets */
    .desktop-booking-table .booking-row:hover {
        transform: translateX(1px) !important;
    }
}

/* ===== DESKTOP LAYOUT RESTORATION ===== */
@media (min-width: 992px) {
    .row.g-4 {
        display: flex !important;
        flex-direction: row !important;
    }

    .row.g-4 .col-lg-8,
    .row.g-4 .col-lg-4 {
        order: unset !important;
    }

    /* Show enhanced table on desktop */
    .desktop-booking-table {
        display: block !important;
    }

    /* Hide mobile list on desktop */
    .mobile-booking-list {
        display: none !important;
    }
}
