/* Sable Hills Booking Manager Styles */

.shbm-wrapper {
    max-width: 100%;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.shbm-header {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.shbm-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

/* Filters */
.shbm-filters {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.shbm-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.shbm-filter-item {
    flex: 1;
    min-width: 200px;
}

.shbm-filter-item label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.shbm-date-input,
.shbm-search-input,
.shbm-status-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out;
}

.shbm-date-input:focus,
.shbm-search-input:focus,
.shbm-status-select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Buttons */
.shbm-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    display: inline-block;
}

.shbm-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shbm-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.shbm-button-secondary {
    background-color: #6c757d;
    color: white;
}

.shbm-button-secondary:hover {
    background-color: #5a6268;
}

.shbm-button-danger {
    background-color: #dc3545;
    color: white;
}

.shbm-button-danger:hover {
    background-color: #c82333;
}

/* Table */
.shbm-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.shbm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.shbm-table thead {
    background-color: #f8f9fa;
}

.shbm-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.shbm-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.shbm-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status badges */
.shbm-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.shbm-status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.shbm-status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.shbm-cancelled-text {
    color: #6c757d;
    font-style: italic;
}

/* Loading */
.shbm-loading {
    text-align: center;
    padding: 40px;
}

.shbm-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: shbm-spin 1s linear infinite;
}

@keyframes shbm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shbm-loading p {
    margin-top: 15px;
    color: #6c757d;
}

/* No results */
.shbm-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.shbm-no-results p {
    margin: 0;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .shbm-filter-row {
        flex-direction: column;
    }
    
    .shbm-filter-item {
        width: 100%;
    }
    
    .shbm-table {
        font-size: 12px;
    }
    
    .shbm-table th,
    .shbm-table td {
        padding: 8px;
    }
    
    .shbm-wrapper {
        padding: 15px;
    }
    
    /* Hide some columns on mobile */
    .shbm-table th:nth-child(1),
    .shbm-table td:nth-child(1),
    .shbm-table th:nth-child(7),
    .shbm-table td:nth-child(7) {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Hide more columns on very small screens */
    .shbm-table th:nth-child(5),
    .shbm-table td:nth-child(5) {
        display: none;
    }
    
    .shbm-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}