/**
 * Audit Logs page styles
 * Form filters and responsive table design
 */

/* ──────────────────────────────────────────
   Filter Form Alignment - Flexbox
   ────────────────────────────────────────── */

#auditLogsForm > div {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#auditLogsForm > div > div {
    display: flex;
    flex-direction: column;
}

#auditLogsForm label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

#auditLogsForm .input-group {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: fit-content;
}

#auditLogsForm .form-control,
#auditLogsForm .form-select {
    border: 1px solid #ddd;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
}

#auditLogsForm .form-select {
    height: auto;
    min-height: 38px;
}

#auditLogsForm .btn {
    border-radius: 0 4px 4px 0;
    height: 38px;
    padding: 0.5rem 0.75rem;
}

#auditLogsForm .btn-primary {
    background-color: #4a9b8e;
    border-color: #4a9b8e;
}

#auditLogsForm .btn-primary:hover {
    background-color: #388a7d;
    border-color: #388a7d;
}

#auditLogsForm .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    margin-left: 0.25rem;
}

/* ──────────────────────────────────────────
   Table Styling
   ────────────────────────────────────────── */

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.text-monospace {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* ──────────────────────────────────────────
   Responsive Design
   ────────────────────────────────────────── */

@media (max-width: 768px) {
    #auditLogsForm > div {
        gap: 0.75rem;
    }

    #auditLogsForm label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    #auditLogsForm .form-control,
    #auditLogsForm .form-select {
        font-size: 0.875rem;
        padding: 0.4rem 0.6rem;
    }

    #auditLogsForm .btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.6rem;
    }

    .table-responsive table {
        font-size: 0.875rem;
    }

    .table thead th {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .table td {
        padding: 0.75rem 0.5rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}
