/* 관리자 페이지 전용 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 상태별 배지 스타일 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.reviewing {
    background: #d1ecf1;
    color: #0c5460;
}

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

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

/* 신고 상세 모달 스타일 */
.report-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.report-detail-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.report-detail-section h4 {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #dee2e6;
}

.report-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.info-row label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    margin-right: 12px;
}

.info-row span {
    color: #212529;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    flex: 1;
}

.report-description {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    min-height: 60px;
    color: #495057;
    line-height: 1.5;
}

.report-content {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    min-height: 200px;
    color: #495057;
    line-height: 1.5;
}

/* 신고 콘텐츠 아이템 스타일 */
.report-content-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f8f9fa;
}

.content-header h5 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.content-meta {
    display: flex;
    gap: 8px;
}

.meta-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.content-details {
    margin-bottom: 16px;
}

.content-details .detail-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f8f9fa;
}

.content-details .detail-row:last-child {
    border-bottom: none;
}

.content-details .detail-row label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    margin-right: 12px;
    font-size: 14px;
}

.content-details .detail-row span {
    color: #212529;
    flex: 1;
    font-size: 14px;
}

/* 배지 텍스트 색상 충돌 방지: 상세 정보 영역에서 배지 텍스트는 항상 흰색 */
.content-details .detail-row .preference-badge,
.report-detail-info .info-row .preference-badge,
.context-message-header .preference-badge {
    color: #fff !important;
}

.content-body {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e9ecef;
}

.content-body label {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.content-text {
    color: #212529;
    line-height: 1.6;
    font-size: 14px;
    word-break: break-word;
}

/* 채팅 컨텍스트 스타일 */
.report-context-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #dee2e6;
}

/* 채팅 컨텍스트 스타일 - 사용자/관리자 공통 (양쪽 클래스 모두 지원) */
.chat-context-messages,
.context-messages {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px;
}

.chat-context-message,
.context-message {
    padding: 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    background: #f8f9fa;
}

.chat-context-message.reported-message,
.context-message.reported-message {
    background: #ffebee;
    border: 2px solid #f44336;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

.chat-context-message-header,
.context-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-context-message-header strong,
.context-message-header strong {
    color: #212529;
}

.chat-context-message-time,
.context-message-time {
    font-size: 12px;
    color: #6c757d;
}

.chat-context-message-content,
.context-message-content {
    color: #212529;
    line-height: 1.4;
}

.reported-badge {
    background: #f44336;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.reported-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 4px;
}

.reported-badge {
    background: #dc3545;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.reported-notice {
    margin-top: 8px;
    padding: 6px 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

:root {
    --primary-color: #4F46E5;
    --secondary-color: #6B7280;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* 다크 모드 */
[data-theme="dark"] {
    --primary-color: #6366F1;
    --secondary-color: #9CA3AF;
    --success-color: #34D399;
    --danger-color: #F87171;
    --warning-color: #FBBF24;
    --info-color: #60A5FA;
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --card-bg: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --border-color: #374151;
    --border-light: #4B5563;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 관리자 레이아웃 */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* 사이드바 */
.admin-sidebar {
    width: 280px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
}

.admin-sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.btn-close-admin {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-close-admin:hover {
    background: rgba(255, 255, 255, 0.3);
}

.admin-sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-nav-item:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.admin-nav-item.active {
    background: var(--primary-color);
    color: white;
    border-left-color: var(--warning-color);
}

.admin-nav-item .icon {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* 네비게이션 그룹 (하위메뉴) */
.admin-nav-group {
    margin-bottom: 4px;
}

.admin-nav-parent {
    position: relative;
    cursor: pointer;
}

.admin-nav-parent .nav-arrow {
    float: right;
    transition: transform 0.2s ease;
    font-size: 12px;
}

.admin-nav-parent.expanded .nav-arrow {
    transform: rotate(180deg);
}

.admin-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
}

.admin-nav-submenu.expanded {
    max-height: 400px;
}

.admin-nav-sub {
    padding-left: 40px !important;
    font-size: 13px;
}

.admin-nav-sub:hover {
    background: var(--border-light);
}

/* 메인 컨텐츠 */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.admin-header {
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 탭 관리 */
.admin-tab {
    display: none;
}

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

/* 통계 카드 */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 32px;
    margin-right: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light);
    border-radius: var(--radius);
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 섹션 */
.admin-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.admin-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-section-header h2 {
    margin-bottom: 0;
}

/* 툴바 */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 300px;
}

.admin-search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
}

.admin-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.admin-search-box button {
    padding: 12px 16px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.admin-search-box button:hover {
    background: var(--text-secondary);
}

.admin-filters {
    display: flex;
    gap: 12px;
}

.admin-select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.admin-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 테이블 */
.admin-table-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: var(--border-light);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.admin-table tbody tr:hover {
    background: var(--border-light);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #3730A3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-secondary);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #D97706;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 배지 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

/* 성향배지 - 성별 기반 색상 */
.preference-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
}

.badge-male {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.badge-female {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* 모달 스타일 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    /* 수직 중앙 정렬 시 내용이 길면 어색해지므로 상단 여백을 주고 시작 정렬 */
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh;
    padding-bottom: 5vh;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 0 auto;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.btn-close:hover {
    background: var(--hover-color);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 관리자 게시글 상세보기 스타일 */
.admin-post-info {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.admin-post-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.admin-post-meta .meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-post-meta .meta-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
}

.admin-post-meta .meta-value {
    font-size: 14px;
    color: #212529;
    font-weight: 500;
}

.admin-post-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #007bff;
}

.admin-post-content .content-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
}

.admin-post-content .content-text {
    font-size: 14px;
    line-height: 1.6;
    color: #212529;
    white-space: pre-wrap;
}

/* 댓글 목록 스타일 */
.admin-comment-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.admin-comment-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.admin-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6c757d;
}

.admin-comment-content {
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    margin-bottom: 12px;
}

.admin-comment-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.admin-comment-actions .btn {
    font-size: 11px;
    padding: 4px 8px;
}

/* 성향배지 스타일 (관리자용) */
.admin-preference-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.admin-preference-badge.male {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.admin-preference-badge.female {
    background: linear-gradient(135deg, #ec4899, #f97316);
}

/* 액션 버튼 스타일 */
.admin-post-actions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.admin-post-actions .btn {
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 댓글 통계 */
.comments-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comments-stats h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.comments-stats .badge {
    font-size: 12px;
    padding: 4px 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 권한 체크박스 그룹 */
.permission-category {
    margin-bottom: 16px;
}

.permission-category-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--border-light);
    border-radius: var(--radius);
    font-size: 13px;
}

.permission-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
    padding: 8px 12px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.permission-item:hover {
    background: var(--border-light);
}

.permission-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.permission-item label {
    margin: 0 !important;
    font-size: 13px;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.permission-name {
    font-weight: 500;
    color: var(--text-primary);
}

.permission-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 탭 네비게이션 */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-primary);
    padding: 0 20px;
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--border-light);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 탭 컨텐츠 */
.tab-content-container {
    padding: 24px;
}

.tab-content {
    display: none;
}

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

/* 회원 상세 정보 */
.user-detail-section {
    margin-bottom: 32px;
}

.user-detail-section h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

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

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 활동 내역 리스트 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    padding: 12px;
    background: var(--border-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-color);
}

.activity-item-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-item-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 자기소개 컨텐츠 */
.bio-question-item {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--border-light);
    border-radius: var(--radius);
}

.bio-question-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.bio-question-answer {
    font-size: 14px;
    color: var(--text-primary);
}

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

.admin-pagination button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.admin-pagination button:hover:not(:disabled) {
    background: var(--border-light);
    border-color: var(--primary-color);
}

.admin-pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.admin-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 유틸리티 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* 반응형 */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 240px;
    }
    
    .admin-main {
        margin-left: 240px;
        padding: 24px;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 16px;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 12px 0;
    }
    
    .admin-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        margin: 0 8px;
        border-radius: var(--radius);
    }
    
    .admin-nav-item.active {
        border-left: none;
        border-bottom-color: var(--warning-color);
    }
    
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-search-box {
        min-width: auto;
    }
    
    .admin-filters {
        justify-content: center;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 600px;
    }
}

/* 로딩 상태 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-tab.active {
    animation: fadeIn 0.3s ease-out;
}

/* 다크 모드 토글 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* ========== 포인트 관리 탭 스타일 ========== */

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.admin-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
}

.admin-tab-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.admin-tab-btn.active {
    background: #4f46e5;
    color: white;
}

.point-tab-content {
    display: none;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    margin: 0;
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

.text-center {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.admin-filter-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-input,
.admin-select {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.admin-input {
    flex: 1;
}

.admin-select {
    min-width: 150px;
}

.pagination-info {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    color: #6b7280;
}
