/**
 * 관리자 대시보드 스타일
 */

.admin-dashboard-container {
  min-height: calc(100vh - 80px);
  background-color: #f8f9fa;
  padding: 2rem 0;
}

.admin-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.admin-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.admin-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

.admin-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.admin-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* 통계 카드 그리드 */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  color: white;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0.5rem 0 0;
}

/* 메인 컨텐츠 영역 */
.admin-main-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  padding: 0 1rem;
}

/* 사이드바 */
.admin-sidebar {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.admin-nav {
  margin: 0;
  padding: 0;
}

.admin-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-nav li {
  margin-bottom: 0.5rem;
}

.admin-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #6c757d;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.admin-nav-link:hover {
  background-color: #e9ecef;
  color: #495057;
  transform: translateX(4px);
}

.admin-nav-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* 컨텐츠 영역 */
.admin-content-area {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 600px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.section-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.5rem;
}

.section-header p {
  color: #6c757d;
  margin: 0;
}

/* 대시보드 위젯 */
.dashboard-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.widget {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}

.widget h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  margin: 0 0 1rem;
}

.chart-placeholder {
  height: 200px;
  background: #e9ecef;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-style: italic;
}

/* 검색 및 필터 */
.search-filters,
.report-filters,
.log-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input,
.filter-select,
.date-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.9rem;
  min-width: 150px;
}

.search-input {
  min-width: 250px;
  flex: 1;
}

/* 테이블 스타일 */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
  background-color: #f8f9fa;
}

.admin-table th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}

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

.post-title a {
  color: #495057;
  text-decoration: none;
  font-weight: 500;
}

.post-title a:hover {
  color: #007bff;
  text-decoration: underline;
}

.status {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status.active {
  background-color: #d4edda;
  color: #155724;
}

.status.inactive {
  background-color: #f8d7da;
  color: #721c24;
}

.status.expired {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.category {
  background-color: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #495057;
}

.action-type {
  background-color: #cce5ff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #0056b3;
  font-weight: 500;
}

/* 관리 액션 버튼들 */
.admin-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid #ced4da;
  background: white;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-small:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
}

/* 채널 그리드 */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.channel-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.channel-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1rem;
}

.channel-card p {
  color: #6c757d;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.channel-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* 권한 관리 */
.role-management {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.role-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.role-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.5rem;
}

.role-card p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.permission-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.permission-list li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: #495057;
}

/* 설정 */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.setting-group {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}

.setting-group h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  margin: 0 0 1rem;
}

.setting-item {
  margin-bottom: 1rem;
}

.setting-item:last-child {
  margin-bottom: 0;
}

.setting-item label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.setting-item input,
.setting-item select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.9rem;
}

.settings-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* 에러 메시지 */
.admin-error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}

.no-data {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 2rem;
}

/* 모달 스타일 */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.admin-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: slideUp 0.2s ease;
}

.admin-modal.large {
  max-width: 900px;
  max-height: 90vh;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.admin-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.admin-modal-body {
  padding: 2rem;
  max-height: 50vh;
  overflow-y: auto;
}

.admin-modal-footer {
  background: #f8f9fa;
  padding: 1rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid #e9ecef;
}

/* 사용자 상세 정보 그리드 */
.user-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.user-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-detail-item label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-detail-item span {
  font-size: 1rem;
  color: #495057;
}

/* 게시글 상세 정보 */
.post-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-detail-item.full-width {
  grid-column: 1 / -1;
}

.post-detail-item label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-detail-item span {
  font-size: 1rem;
  color: #495057;
}

.post-content {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.6;
}

.post-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.post-media-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.post-media-thumb:hover {
  transform: scale(1.05);
}

/* 버튼 기본 스타일 */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

@media (max-width: 768px) {
  .admin-modal {
    width: 95%;
    max-height: 90vh;
  }

  .admin-modal-body {
    padding: 1rem;
  }

  .admin-modal-footer {
    padding: 1rem;
  }

  .user-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* 채널 관리 스타일 */
.channel-location strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.channel-location small {
  color: #6c757d;
  font-size: 0.85rem;
}

.user-count,
.post-count {
  font-weight: 600;
}

.post-count.today {
  color: #28a745;
}

.post-count.total {
  color: #6c757d;
}

.channel-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.channel-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.channel-detail-item label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.channel-detail-item span {
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

/* 채널 통계 모달 스타일 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stats-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
}

.stats-card h4 {
  margin: 0 0 1rem 0;
  color: #495057;
  font-size: 1.1rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.stats-item:last-child {
  margin-bottom: 0;
}

.stats-item label {
  font-size: 0.9rem;
  color: #6c757d;
}

.stats-value {
  font-weight: 600;
  color: #495057;
  font-size: 1rem;
}

.stats-charts {
  margin-top: 2rem;
}

.chart-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
}

.chart-container h4 {
  margin: 0 0 1rem 0;
  color: #495057;
  font-size: 1.1rem;
}

.chart-placeholder {
  background: white;
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  border: 2px dashed #dee2e6;
  color: #6c757d;
}

.channels-content {
  min-height: 200px;
}

/* 사용자 제재 시스템 스타일 */
.user-detail-tabs {
  display: flex;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1.5rem;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tab-button:hover {
  background: #f8f9fa;
}

.tab-button.active {
  border-bottom-color: #667eea;
  background: #f8f9fa;
  color: #667eea;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.warning {
  color: #dc3545;
  font-weight: 600;
}

/* 제재 내역 스타일 */
.sanctions-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.sanction-item {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f8f9fa;
}

.sanction-item.active {
  border-left: 4px solid #dc3545;
}

.sanction-item.expired {
  border-left: 4px solid #6c757d;
  opacity: 0.7;
}

.sanction-item.revoked {
  border-left: 4px solid #28a745;
  opacity: 0.7;
}

.sanction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sanction-type {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.sanction-type.warning {
  background: #fff3cd;
  color: #856404;
}

.sanction-type.suspension {
  background: #f8d7da;
  color: #721c24;
}

.sanction-type.ban {
  background: #d1ecf1;
  color: #0c5460;
}

.sanction-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.sanction-content p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.sanction-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

/* 활동 내역 스타일 */
.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.activity-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.activity-time {
  font-size: 0.8rem;
  color: #adb5bd;
}

/* 제재 모달 스타일 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #495057;
}

.form-group textarea,
.form-group select,
.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.form-group textarea:focus,
.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sanction-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
}

.sanction-warning p {
  margin: 0;
  color: #856404;
  font-size: 0.9rem;
}

.btn-dark {
  background: #343a40;
  color: white;
}

.btn-dark:hover {
  background: #23272b;
}

/* 반응형 제재 시스템 */
@media (max-width: 768px) {
  .user-detail-tabs {
    flex-wrap: wrap;
  }

  .tab-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .sanction-item {
    padding: 0.75rem;
  }

  .sanction-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

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

  .activity-icon {
    text-align: left;
  }
}

/* 활동 로그 고도화 스타일 */
.log-filters {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 2fr auto auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.date-range-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-separator {
  color: #6c757d;
  font-weight: 600;
}

.date-input {
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.9rem;
}

.logs-content {
  min-height: 200px;
}

/* 로그 테이블 스타일 */
.log-row {
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.log-row:hover {
  background: #f8f9fa;
}

.log-row.high-severity {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.log-row.medium-severity {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.05);
}

.log-row.low-severity {
  border-left-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.log-time strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.log-time small {
  color: #6c757d;
  font-size: 0.8rem;
}

.admin-info strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.admin-info small {
  color: #6c757d;
  font-size: 0.8rem;
}

.action-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-badge.success {
  background: #d4edda;
  color: #155724;
}

.action-badge.warning {
  background: #fff3cd;
  color: #856404;
}

.action-badge.danger {
  background: #f8d7da;
  color: #721c24;
}

.action-badge.info {
  background: #d1ecf1;
  color: #0c5460;
}

.action-badge.secondary {
  background: #e2e3e5;
  color: #383d41;
}

.target-info strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.target-info small {
  color: #6c757d;
  font-size: 0.8rem;
}

.ip-address {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.log-details {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #6c757d;
}

/* 로그 상세 모달 스타일 */
.log-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.log-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.log-detail-item.full-width {
  grid-column: 1 / -1;
}

.log-detail-item label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.log-detail-item span,
.log-content {
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
}

.user-agent {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.log-content {
  min-height: 60px;
  white-space: pre-wrap;
}

.metadata-content {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: #495057;
}

/* 로그 필터 반응형 */
@media (max-width: 1200px) {
  .log-filters {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .date-range-filters {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .log-detail-grid {
    grid-template-columns: 1fr;
  }

  .log-details {
    max-width: none;
    white-space: normal;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .log-time,
  .admin-info,
  .target-info {
    font-size: 0.8rem;
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .admin-main-content {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    margin-bottom: 1rem;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .search-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input,
  .filter-select {
    min-width: auto;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.25rem;
  }
}

/* 대시보드 위젯 스타일 */
.dashboard-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.widget {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.widget h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

/* 카테고리 통계 */
.category-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.category-name {
  font-weight: 500;
  color: #333;
}

.category-count {
  font-weight: 600;
  color: #007bff;
}

/* 최근 활동 */
.recent-activities {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #28a745;
}

.activity-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-admin {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.activity-action {
  color: #666;
  font-size: 12px;
}

.activity-time {
  color: #999;
  font-size: 12px;
}

/* 시스템 상태 */
.system-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.status-item:last-child {
  border-bottom: none;
}

.status-label {
  font-weight: 500;
  color: #333;
}

.status-value {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.status-value.success {
  background: #d4edda;
  color: #155724;
}

.status-value.warning {
  background: #fff3cd;
  color: #856404;
}

.status-value.error {
  background: #f8d7da;
  color: #721c24;
}

/* 통계 카드 하위 정보 */
.stat-sub {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 12px;
}

.stat-sub span {
  font-weight: 600;
  color: #007bff;
}
