/* MV Tanguar Haor Booking System Styles */
:root {
    --primary-color: #3653d1;
    --primary-dark: #2a42a8;
    --primary-light: #4f6bd9;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

/* Welcome Page Styles */
.welcome-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

.logo h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.logo p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.welcome-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Login Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box .logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
}

.login-box .logo p {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.login-form h2 {
    margin-bottom: 30px;
    color: var(--dark-color);
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(54, 83, 209, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        display: block;
    }
    
    .form-row .form-group {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: auto !important;
    margin-right: 8px;
    flex-shrink: 0;
}

.checkbox-group label {
    width: auto !important;
}

.required {
    color: var(--danger-color);
}

.error-message {
    color: var(--danger-color);
    margin-top: 10px;
    font-size: 14px;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar .logo {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.sidebar .logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 20px;
    text-align: center;
    font-size: 12px;
}

.sidebar-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-footer a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    background-color: var(--light-color);
    min-height: 100vh;
    overflow-x: hidden;
    width: calc(100% - 250px);
}

.mobile-header {
    display: none;
    background-color: var(--white);
    padding: 15px 20px;
    box-shadow: var(--shadow);
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hamburger {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-color);
}

.content {
    padding: 30px;
}

.content h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
    max-width: 250px;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h3 {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Section Styles */
.section {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-section select {
    min-width: 150px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.filter-section select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(54, 83, 209, 0.2);
}

.filter-controls .btn {
    height: 38px;
    padding: 8px 16px;
    white-space: nowrap;
}

/* Table Styles */
.table-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    margin-top: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: fit-content;
}

th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: center !important;
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
}

/* Transaction table specific column styling */
#transactionTable {
    table-layout: auto;
    width: 100%;
    min-width: 840px;
}

#transactionTable th,
#transactionTable td {
    border-right: 1px solid var(--border-color);
}

#transactionTable th:last-child,
#transactionTable td:last-child {
    border-right: none;
}

#transactionTable th:nth-child(1),
#transactionTable td:nth-child(1) {
    width: 16.67%;
    min-width: 140px;
    text-align: center !important;
    word-wrap: break-word;
    white-space: normal;
}

#transactionTable th:nth-child(2),
#transactionTable td:nth-child(2) {
    width: 16.67%;
    min-width: 140px;
    text-align: center !important;
    word-wrap: break-word;
    white-space: normal;
}

#transactionTable th:nth-child(3),
#transactionTable td:nth-child(3) {
    width: 10%;
    min-width: 84px;
    text-align: center !important;
    word-wrap: break-word;
    white-space: normal;
}

#transactionTable th:nth-child(4),
#transactionTable td:nth-child(4) {
    width: 12.5%;
    min-width: 105px;
    text-align: center !important;
    word-wrap: break-word;
    white-space: normal;
}

#transactionTable th:nth-child(5) {
    width: 20.83%;
    min-width: 175px;
    text-align: center !important;
    word-wrap: break-word;
    white-space: normal;
}

#transactionTable td:nth-child(5) {
    width: 20.83%;
    min-width: 175px;
    text-align: left !important;
    word-wrap: break-word;
    white-space: normal;
}

#transactionTable th:nth-child(6) {
    width: 20.83%;
    min-width: 175px;
    text-align: center !important;
    word-wrap: break-word;
    white-space: normal;
}

#transactionTable td:nth-child(6) {
    width: 20.83%;
    min-width: 175px;
    text-align: left !important;
    word-wrap: break-word;
    white-space: normal;
}

/* Text wrapping for specific columns */
th:nth-child(9), td:nth-child(9),  /* Customer Name */
th:nth-child(10), td:nth-child(10) { /* Address */
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 200px;
    min-width: 150px;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Responsive Table Styles */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    /* overflow: hidden; */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    table-layout: auto;
}

.responsive-table th,
.responsive-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
    vertical-align: middle;
}

.responsive-table th {
    white-space: normal;
}

.responsive-table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.responsive-table tbody tr:hover {
    background-color: #e3f2fd;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.responsive-table tbody tr:hover td {
    background-color: #e3f2fd;
}

/* Status column center alignment */
th:nth-child(4), td:nth-child(4) { /* Status column */
    text-align: center !important;
}

/* Payment Status column center alignment */
th:nth-child(16), td:nth-child(16) { /* Payment Status column */
    text-align: center !important;
}

/* Booking table Status column center alignment */
#bookingTable th:nth-child(4),
#bookingTable td:nth-child(4) {
    text-align: center !important;
}

/* Booking table Payment Status column center alignment */
#bookingTable th:nth-child(16),
#bookingTable td:nth-child(16) {
    text-align: center !important;
}

/* Responsive table Status column center alignment */
.responsive-table th:nth-child(4),
.responsive-table td:nth-child(4) {
    text-align: center !important;
}

/* Responsive table Payment Status column center alignment */
.responsive-table th:nth-child(16),
.responsive-table td:nth-child(16) {
    text-align: center !important;
}

/* Booking table specific styles */
#bookingTable th,
#bookingTable td {
    border-right: 1px solid var(--border-color);
}

#bookingTable th:last-child,
#bookingTable td:last-child {
    border-right: none;
}

/* Vendor Summary table specific styles */
#vendorSummaryTable {
    table-layout: auto;
    width: 100%;
}

#vendorSummaryTable th,
#vendorSummaryTable td {
    border-right: 1px solid var(--border-color);
}

#vendorSummaryTable th:last-child,
#vendorSummaryTable td:last-child {
    border-right: none;
}

.total-row {
    background-color: var(--light-color);
    font-weight: 600;
}

/* Room Selection */
.available-rooms {
    margin: 20px 0;
}

.room-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    background: var(--white);
    transition: all 0.3s ease;
}

.room-item:hover {
    border-color: var(--primary-color);
    background-color: rgba(54, 83, 209, 0.05);
}

.room-item input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.room-info {
    flex: 1;
}

.room-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.room-info p {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.message-container {
    margin-top: 1rem;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    max-width: 400px;
    margin: 0 auto;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Booking Details */
.booking-details {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    color: var(--secondary-color);
    font-size: 14px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-header {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card h3 {
        font-size: 0.875rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .filter-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-section select,
    .filter-section button {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .welcome-section .logo h1 {
        font-size: 2rem;
    }

    .welcome-content h2 {
        font-size: 1.5rem;
    }

    /* Auto-adjustable column widths for availability table */
    .availability-table {
        font-size: 0.875rem;
        table-layout: auto;
        width: 100%;
    }

    .availability-table th,
    .availability-table td {
        width: auto;
        white-space: nowrap;
        padding: 12px 15px;
    }

    /* Allow Room Name column to be wider if needed */
    .availability-table th:nth-child(2),
    .availability-table td:nth-child(2) {
        white-space: normal;
        word-wrap: break-word;
        min-width: 150px;
    }

    .rooms-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    /* Responsive Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .table-container table {
        width: auto;
        min-width: 100%;
        font-size: 0.875rem;
    }

    .table-container th,
    .table-container td {
        padding: 10px 15px;
        white-space: nowrap;
        min-width: 120px;
    }

    /* Specific minimum widths for better mobile display */
    .table-container th:nth-child(1),
    .table-container td:nth-child(1) { min-width: 110px; } /* Trip Date */
    .table-container th:nth-child(2),
    .table-container td:nth-child(2) { min-width: 80px; }  /* Room */
    .table-container th:nth-child(3),
    .table-container td:nth-child(3) { min-width: 140px; } /* Room Name */
    .table-container th:nth-child(4),
    .table-container td:nth-child(4) { min-width: 100px; } /* Status */
    .table-container th:nth-child(5),
    .table-container td:nth-child(5) { min-width: 120px; } /* Booked By */
    .table-container th:nth-child(6),
    .table-container td:nth-child(6) { min-width: 120px; } /* Booking Date */
    .table-container th:nth-child(7),
    .table-container td:nth-child(7) { min-width: 100px; } /* Guest Number */
    .table-container th:nth-child(8),
    .table-container td:nth-child(8) { min-width: 80px; }  /* Child */
    .table-container th:nth-child(9),
    .table-container td:nth-child(9) { min-width: 160px; white-space: normal; word-wrap: break-word; } /* Customer Name */
    .table-container th:nth-child(10),
    .table-container td:nth-child(10) { min-width: 180px; white-space: normal; word-wrap: break-word; } /* Address */
    .table-container th:nth-child(11),
    .table-container td:nth-child(11) { min-width: 120px; } /* Phone Number */
    .table-container th:nth-child(12),
    .table-container td:nth-child(12) { min-width: 120px; } /* Whatsapp */
    .table-container th:nth-child(13),
    .table-container td:nth-child(13) { min-width: 160px; } /* Email */

    /* Form Responsiveness */
    .form-row {
        display: block !important;
    }
    
    .form-row .form-group {
        width: 100% !important;
        margin-bottom: 1rem;
        display: block;
    }

    .responsive-form {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        width: 100% !important;
        box-sizing: border-box;
        max-width: none !important;
    }

    .form-group {
        width: 100% !important;
        max-width: none !important;
    }

    /* Login form */
    .login-box {
        margin: 1rem;
        padding: 1.5rem;
    }

    .login-box .btn {
        width: 100%;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 2fr, 1fr;
    }

    .mobile-header h1 {
        font-size: 1.25rem;
    }

    .mobile-header .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .table-container {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .table-container table {
        font-size: 0.8rem;
        min-width: 1200px;
    }

    .table-container th,
    .table-container td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Enhanced mobile column widths */
    .table-container th:nth-child(1),
    .table-container td:nth-child(1) { min-width: 120px; } /* Trip Date */
    .table-container th:nth-child(2),
    .table-container td:nth-child(2) { min-width: 70px; }  /* Room */
    .table-container th:nth-child(3),
    .table-container td:nth-child(3) { min-width: 150px; } /* Room Name */
    .table-container th:nth-child(9),
    .table-container td:nth-child(9) { min-width: 180px; } /* Customer Name */
    .table-container th:nth-child(10),
    .table-container td:nth-child(10) { min-width: 200px; } /* Address */

    /* Mobile form layout - single column */
    .form-row {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .form-row .form-group {
        width: 100% !important;
        margin-bottom: 1rem;
        max-width: none !important;
    }

    .content {
        padding: 1rem;
    }

    .section {
        margin-bottom: 1.5rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Screen Responsive */
@media (min-width: 1200px) {
    .rooms-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .login-box {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .section {
        padding: 20px;
    }
    
    th, td {
        padding: 8px;
        font-size: 14px;
    }
}

/* Loading and Status Indicators */
.loading {
    text-align: center;
    padding: 20px;
    color: var(--secondary-color);
}

.status-pending {
    color: var(--warning-color);
    font-weight: 500;
}

.status-paid {
    color: var(--success-color);
    font-weight: 500;
}

.status-partial {
    color: var(--info-color);
    font-weight: 500;
}

.status-available {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.status-booked {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.status-confirmed {
    color: var(--success-color);
    font-weight: 600;
}

.status-cancelled {
    color: var(--danger-color);
    font-weight: 600;
}

.status-completed {
    color: var(--info-color);
    font-weight: 600;
}

td[data-status="Available"],
td[data-status="available"] {
    color: var(--success-color);
    font-weight: 600;
}

td[data-status="Booked"],
td[data-status="booked"] {
    color: var(--danger-color);
    font-weight: 600;
}

td[data-status="Pending"],
td[data-status="pending"] {
    color: var(--warning-color);
    font-weight: 600;
}

td[data-status="Confirmed"],
td[data-status="confirmed"] {
    color: var(--success-color);
    font-weight: 600;
}

td[data-status="Cancelled"],
td[data-status="cancelled"] {
    color: var(--danger-color);
    font-weight: 600;
}

.availability-table {
        margin-top: 1rem;
        border-collapse: collapse;
        border: 1px solid #dee2e6;
        width: 100%;
    }
    
    .availability-table th {
        background-color: #f8f9fa;
        font-weight: 600;
        text-align: center;
        border: 1px solid #dee2e6;
        padding: 12px 8px;
    }
    
    .availability-table td {
        vertical-align: middle;
        word-wrap: break-word;
        overflow-wrap: break-word;
        border: 1px solid #dee2e6;
        padding: 12px 8px;
        text-align: center;
    }
    
    .availability-table td:nth-child(3) {
        text-align: left;
    }

    .selected-rooms-table {
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
        table-layout: auto;
        font-size: 14px;
    }
    
    .selected-rooms-table th {
        background-color: #f8f9fa;
        font-weight: 600;
        text-align: center;
        font-size: 14px;
        padding: 12px 8px;
    }
    
    .selected-rooms-table td {
        text-align: center;
        vertical-align: middle;
        font-size: 14px;
        padding: 12px 8px;
    }
    
    /* Make Trip Date column wider */
    .selected-rooms-table th:nth-child(1),
    .selected-rooms-table td:nth-child(1) {
        width: 25%;
        min-width: 120px;
    }
    
    /* Room No column */
    .selected-rooms-table th:nth-child(2),
    .selected-rooms-table td:nth-child(2) {
        width: 15%;
        min-width: 80px;
    }
    
    /* Make Room Name column wider and left-aligned */
    .selected-rooms-table th:nth-child(3),
    .selected-rooms-table td:nth-child(3) {
        width: 30%;
        min-width: 150px;
        text-align: left;
        padding-left: 12px;
    }
    
    /* Guest column */
    .selected-rooms-table th:nth-child(4),
    .selected-rooms-table td:nth-child(4) {
        width: 15%;
        min-width: 80px;
    }
    
    /* Child column */
    .selected-rooms-table th:nth-child(5),
    .selected-rooms-table td:nth-child(5) {
        width: 15%;
        min-width: 80px;
    }
    
    .selected-rooms-table input[type="number"] {
        width: 60px;
        padding: 0.25rem 0.5rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        text-align: center;
        font-size: 14px;
    }

.room-name-cell {
    text-align: left;
    padding-left: 8px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }
.visible { display: block; }

/* Responsive Room Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 15px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .rooms-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, calc(16.666% - 10px)));
        max-width: 1080px;
    }
}

@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.room-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    background: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.room-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(54, 83, 209, 0.1);
}

.room-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.room-checkbox input[type="checkbox"] {
    margin-top: 2px;
    transform: scale(1.2);
}

.room-checkbox label {
    cursor: pointer;
    flex: 1;
    line-height: 1.4;
}

.room-checkbox label strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

.room-checkbox label small {
    color: #666;
    font-size: 12px;
}

/* Selected Room Table Styles */
.selected-room-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
}

.selected-room-section h4 {
    margin: 0 0 1rem 0;
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 600;
}

.selected-room-table {
    margin: 0;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
}

.selected-room-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    text-align: center;
    border: none;
    font-size: 14px;
}

.selected-room-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
}

/* Make Trip Date and Room Name columns wider */
.selected-room-table th:nth-child(1),
.selected-room-table td:nth-child(1) {
    width: 25%;
}

.selected-room-table th:nth-child(3),
.selected-room-table td:nth-child(3) {
    width: 30%;
    text-align: left;
    padding-left: 12px;
}

.selected-room-table tr:last-child td {
    border-bottom: none;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Vendor Summary Table Styling */
#vendorSummaryTable thead th {
    text-align: center;
}

#vendorSummaryTable tbody td {
    text-align: center;
}

#vendorSummaryTable tbody td:first-child {
    text-align: left;
}

#vendorSummaryTable th:first-child,
#vendorSummaryTable td:first-child {
    width: 32%;
}

#vendorSummaryTable th:not(:first-child),
#vendorSummaryTable td:not(:first-child) {
    width: 17%;
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 2px);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.autocomplete-suggestions.show {
    display: block;
}

.autocomplete-suggestion {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-suggestion:hover {
    background-color: #f8f9fa;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.form-group {
    position: relative;
}