/* 감사 로그 뷰 스타일 */
.audit-log-view {
    padding: 20px;
}

.audit-log-view .view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.audit-log-view .view-header h2 {
    margin: 0;
    color: #333;
}

.audit-log-view .header-actions {
    display: flex;
    gap: 10px;
}

/* 필터 패널 */
.filters-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.filters-panel h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #495057;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-item label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #495057;
}

.filter-item .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* 통계 카드 */
.logs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 32px;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #0054e3;
}

/* 로그 테이블 */
.logs-table-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.logs-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.logs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
}

.logs-table tbody tr:hover {
    background: #f8f9fa;
}

.user-info, .resource-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-info strong, .resource-info strong {
    color: #333;
}

.user-info small, .resource-info small {
    color: #6c757d;
    font-size: 12px;
}

/* 액션 배지 */
.action-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.action-login { background: #d1ecf1; color: #0c5460; }
.action-upload { background: #d4edda; color: #155724; }
.action-download { background: #fff3cd; color: #856404; }
.action-view { background: #cce5ff; color: #004085; }
.action-delete { background: #f8d7da; color: #721c24; }
.action-update { background: #e2e3e5; color: #383d41; }
.action-create { background: #d1f2eb; color: #0f5132; }
.action-move { background: #fce8e6; color: #a63a29; }
.action-print { background: #e7e7ff; color: #3939ac; }
.action-create_backup { background: #fff3cd; color: #664d03; }
.action-restore_backup { background: #ffeeba; color: #856404; }

/* 통계 카드 그리드 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 필터 섹션 */
.filter-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #495057;
}

/* 페이지네이션 */
.pagination-container {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #0054e3;
}

.page-btn.active {
    background: #0054e3;
    color: white;
    border-color: #0054e3;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #6c757d;
}

/* 로그 상세 모달 - 오버레이 없음 */
.log-detail-modal {
    display: none;
}

.log-detail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #333;
}

.detail-value pre {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 12px;
    overflow-x: auto;
}

.text-center {
    text-align: center;
}

.error-message {
    color: #dc3545;
    padding: 20px;
}
