/* Page Specific Styles */
.main-content {
    flex: 1;
    padding: var(--space-8) 0;
}

/* Page Header */
.page-header {
    background: var(--bg-gradient-primary);
    padding: var(--space-6) 0;
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.page-header h1 {
    color: white;
    font-size: var(--text-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.page-header h1 svg {
    width: 32px;
    height: 32px;
}

/* Filter Section */
.filter-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--neutral-100);
}

.filter-section h3 {
    font-size: var(--text-lg);
    color: var(--primary-700);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

/* Log Section */
.log-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--neutral-100);
    overflow: hidden;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--neutral-100);
    background: var(--neutral-50);
}

.log-header h2 {
    font-size: var(--text-lg);
    color: var(--primary-700);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.log-count {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

/* Log Table */
.log-table {
    width: 100%;
    border-collapse: collapse;
}

.log-table th {
    background: var(--primary-700);
    color: white;
    padding: var(--space-4) var(--space-5);
    text-align: right;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

.log-table th:first-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.log-table th:last-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.log-table td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--neutral-100);
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.log-table tbody tr {
    transition: background var(--transition-fast);
}

.log-table tbody tr:hover {
    background: var(--neutral-50);
}

/* Action Badges */
.action-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.action-badge.login {
    background: var(--success-light);
    color: #065f46;
}

.action-badge.logout {
    background: var(--neutral-200);
    color: var(--neutral-700);
}

.action-badge.create {
    background: var(--info-light);
    color: #1e40af;
}

.action-badge.update {
    background: var(--warning-light);
    color: #92400e;
}

.action-badge.delete {
    background: var(--error-light);
    color: var(--error);
}

.action-badge.approve {
    background: var(--success-light);
    color: #065f46;
}

.action-badge.error {
    background: var(--error-light);
    color: var(--error);
}

/* User Info Cell */
.user-cell {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.user-name {
    font-weight: var(--font-medium);
    color: var(--neutral-800);
}

.user-id {
    font-size: var(--text-xs);
    color: var(--neutral-400);
}

/* Details Cell */
.details-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

.details-cell:hover {
    white-space: normal;
    word-break: break-word;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-6);
    border-top: 1px solid var(--neutral-100);
}

.page-btn {
    padding: var(--space-2) var(--space-4);
    border: 2px solid var(--neutral-200);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--neutral-600);
    transition: all var(--transition-fast);
}

.page-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
}

.page-btn.active {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.page-dots {
    padding: var(--space-2);
    color: var(--neutral-400);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    color: var(--neutral-400);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    margin-bottom: var(--space-2);
}

.empty-state p {
    font-size: var(--text-sm);
    color: var(--neutral-400);
}

/* Table Wrapper for Responsive */
.table-wrapper {
    overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .log-header {
        flex-direction: column;
        gap: var(--space-3);
    }
}
