/* BOOKINGS PAGE STYLES */

.bookings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bookings-header h1 {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1e293b;
    font-size: 1.8rem;
}

.bookings-header h1 i {
    color: #3b82f6;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Advanced Filters */
.advanced-filters {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: none;
}

.advanced-filters.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group input,
.filter-group select {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* Booking Stats */
.booking-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-badge {
    flex: 1;
    min-width: 150px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.stat-badge:hover {
    transform: translateY(-5px);
}

.stat-badge i {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
}

.stat-badge.total i { background: #3b82f6; }
.stat-badge.confirmed i { background: #10b981; }
.stat-badge.pending i { background: #f59e0b; }
.stat-badge.checked-in i { background: #8b5cf6; }
.stat-badge.checked-out i { background: #64748b; }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

/* Table Container */
.bookings-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.table-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 8px;
}

.view-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.entries-select {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
}

.entries-select select {
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
}

/* Table Styling */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
}

.bookings-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    color: #475569;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.bookings-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.bookings-table tbody tr:hover {
    background: #f8fafc;
}

.bookings-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-checked-in {
    background: #e0e7ff;
    color: #3730a3;
}

.status-checked-out {
    background: #e2e8f0;
    color: #1e293b;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: white;
}

.action-btn.view {
    background: #3b82f6;
}

.action-btn.edit {
    background: #f59e0b;
}

.action-btn.delete {
    background: #ef4444;
}

.action-btn.checkin {
    background: #10b981;
}

.action-btn:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.pagination-btn {
    padding: 10px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #e2e8f0;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: #475569;
    transition: all 0.3s;
}

.page-number:hover:not(.active) {
    background: #f1f5f9;
}

.page-number.active {
    background: #3b82f6;
    color: white;
}

.page-dots {
    color: #94a3b8;
    display: flex;
    align-items: center;
}

/* Calendar View */
.calendar-view {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.calendar-nav button {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav button:hover {
    background: #e2e8f0;
}

#current-month {
    font-size: 1.3rem;
    color: #1e293b;
    min-width: 150px;
    text-align: center;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    height: 100px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
    overflow-y: auto;
}

.calendar-day-header {
    text-align: center;
    padding: 15px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border-radius: 6px;
}

.day-number {
    font-weight: 600;
    margin-bottom: 5px;
    color: #1e293b;
}

.calendar-booking {
    background: #3b82f6;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 3px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-booking:hover {
    opacity: 0.9;
}

.calendar-day.weekend {
    background: #f8fafc;
}

.calendar-day.today {
    background: #dbeafe;
    border-color: #3b82f6;
}

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

.modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f1f5f9;
}

.modal-body {
    padding: 25px;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.guest-select {
    display: flex;
    gap: 10px;
}

.guest-select select {
    flex: 1;
}

.btn-small {
    padding: 12px 15px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    color: #475569;
}

.btn-small:hover {
    background: #e2e8f0;
}

/* Price Summary */
.price-summary {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.price-summary h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #1e293b;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.price-row.total {
    border-bottom: none;
    border-top: 2px solid #e2e8f0;
    padding-top: 15px;
    margin-top: 5px;
    font-size: 1.2rem;
}

.price-row.discount {
    align-items: center;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 1024px) {
    .bookings-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .booking-stats {
        flex-direction: column;
    }
    
    .stat-badge {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .calendar-day-header {
        display: none;
    }
}