/**
 * 감사 로그 페이지 전용 CSS (admin_common.css 위에서 동작)
 */

/* 콘텐츠 영역 */
.admin-content .logs-content {
    padding: 15px 20px;
}

/* 통계 카드 */
.log-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.stat-card {
    background: #2c3e50;
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    opacity: 0.8;
}

/* 로그 테이블 */
.logs-table-container {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table th {
    background: #f1f3f4;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #667eea;
    font-size: 12px;
    white-space: nowrap;
}

.logs-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    color: #333;
}

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

/* 액션 배지 */
.action-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.action-login { background: #d4edda; color: #155724; }
.action-logout { background: #f8d7da; color: #721c24; }
.action-complete_order { background: #d1ecf1; color: #0c5460; }
.action-update_status { background: #fff3cd; color: #856404; }
.action-edit_memo { background: #e2e3e5; color: #383d41; }
.action-add_admin { background: #f4cccc; color: #990000; }
.action-update_admin { background: #e1bee7; color: #4a148c; }
.action-toggle_admin { background: #fce5cd; color: #cc6600; }
.action-update_master { background: #ead1dc; color: #741b47; }

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    font-weight: 500;
}

.pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.table-responsive {
    overflow-x: auto;
}

.no-logs {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-logs h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

/* 툴바 내 필터 요소 */
.admin-toolbar .log-filter-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-toolbar .log-filter-group label {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.admin-toolbar .log-filter-group select,
.admin-toolbar .log-filter-group input {
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Noto Sans KR', sans-serif;
}

.admin-toolbar .log-filter-group select:focus,
.admin-toolbar .log-filter-group input:focus {
    outline: none;
    border-color: #667eea;
}
