/**
 * Audit Logs Styles (Feature 003 - Admin Interface)
 * Consistent styling with reservation table
 */

/* ========================================
   AUDIT LOGS CONTAINER
   ======================================== */
.audit-logs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.audit-logs__header {
    margin-bottom: 2rem;
}

.audit-logs__header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}

/* ========================================
   FILTERS SECTION
   ======================================== */
.audit-logs__filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #2d7a3e;
    box-shadow: 0 0 0 2px rgba(45, 122, 62, 0.1);
}

/* ========================================
   LOG TABLE - Based on Reservation Table
   ======================================== */
.log-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.log-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
}

/* ========================================
   TABLE HEADER
   ======================================== */
.log-table thead {
    background: #f8f9fa;
}

.log-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

/* ========================================
   TABLE BODY & ROWS
   ======================================== */
.log-table tbody {
    background: white;
}

.log-table tbody tr {
    border-top: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.log-table tbody tr:hover {
    background-color: #f8f9fa;
}

.log-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #333;
}

.log-table td:first-child {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #666;
}

/* ========================================
   LOADING & EMPTY STATES
   ======================================== */
.loading {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 0.875rem;
    background: white;
    border-radius: 8px;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #2d7a3e;
    color: #2d7a3e;
}

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

.pagination__info {
    font-size: 0.875rem;
    color: #666;
    padding: 0 1rem;
    white-space: nowrap;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .audit-logs {
        padding: 1rem;
    }

    .audit-logs__filters {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        min-width: auto;
        width: 100%;
    }

    .log-table th,
    .log-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination__info {
        padding: 0.5rem 0;
    }
}
