/**
 * ============================================
 * Next Tab - 관리자 전용 스타일
 * ============================================
 * 작성일: 2024-12-19
 * 설명: 로그인, 대시보드, 모달 스타일
 * ============================================
 */

/* ==================== 공통 스타일 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #112117;
    color: #ffffff;
    min-height: 100vh;
}

/* 배경 애니메이션 */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(54, 226, 123, 0.1), transparent 50%);
}

/* ==================== 로그인/설정 페이지 ==================== */
.login-container,
.setup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card,
.setup-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(54, 226, 123, 0.2);
    border-radius: 1rem;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.logo .material-symbols-outlined {
    font-size: 3rem;
    color: #36e27b;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title,
.setup-title {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-subtitle,
.setup-subtitle {
    text-align: center;
    color: #9eb7a8;
    margin-bottom: 2rem;
}

/* 폼 스타일 */
.login-form,
.setup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #9eb7a8;
}

.form-group label .material-symbols-outlined {
    font-size: 1.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(54, 226, 123, 0.2);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #36e27b;
    background: rgba(255, 255, 255, 0.08);
}

/* select 요소 특수 스타일링 */
.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2336e27b'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #1a2e1f;
    color: #ffffff;
    padding: 0.5rem;
}

.form-hint {
    font-size: 0.875rem;
    color: #9eb7a8;
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #36e27b;
    color: #112117;
}

.btn-primary:hover {
    background: #2fd16f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(54, 226, 123, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-blue {
    background: #3b82f6;
    color: #ffffff;
}

.btn-blue:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-orange {
    background: #f59e0b;
    color: #ffffff;
}

.btn-orange:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 메시지 */
.error-message {
    padding: 0.875rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 0.5rem;
    color: #fca5a5;
    font-size: 0.875rem;
}

.success-message {
    padding: 0.875rem;
    background: rgba(54, 226, 123, 0.2);
    border: 1px solid rgba(54, 226, 123, 0.4);
    border-radius: 0.5rem;
    color: #8affba;
    font-size: 0.875rem;
}

.login-footer,
.setup-footer {
    margin-top: 2rem;
    text-align: center;
    color: #9eb7a8;
    font-size: 0.875rem;
}

/* ==================== 대시보드 ==================== */
.admin-nav {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(54, 226, 123, 0.2);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.nav-logo .material-symbols-outlined {
    font-size: 2rem;
    color: #36e27b;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: #9eb7a8;
}

.admin-main {
    padding: 2rem;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.admin-header h1 {
    font-size: 2rem;
    font-weight: 600;
}

/* 테이블 */
.table-container {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(54, 226, 123, 0.2);
    border-radius: 1rem;
    overflow: hidden;
}

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

.admin-table thead {
    background: rgba(54, 226, 123, 0.1);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #36e27b;
    border-bottom: 1px solid rgba(54, 226, 123, 0.2);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table code {
    background: rgba(54, 226, 123, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: #8affba;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(54, 226, 123, 0.2);
    color: #8affba;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* 상태 토글 버튼 */
.status-toggle {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.3s;
}

.status-toggle.active {
    background: rgba(54, 226, 123, 0.2);
    color: #8affba;
    border-color: rgba(54, 226, 123, 0.4);
}

.status-toggle.active:hover {
    background: rgba(54, 226, 123, 0.3);
    transform: scale(1.05);
}

.status-toggle.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.status-toggle.inactive:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(17, 33, 23, 0.95);
    border: 1px solid rgba(54, 226, 123, 0.2);
    border-radius: 1rem;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(54, 226, 123, 0.2);
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: #9eb7a8;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-form {
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(54, 226, 123, 0.2);
}

/* 토스트 */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: rgba(54, 226, 123, 0.9);
    color: #112117;
}

.toast-error {
    background: rgba(239, 68, 68, 0.9);
}

/* ==================== 피커 스타일 ==================== */

/* 전체 너비 폼 그룹 */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* 아이콘 선택기 컨테이너 */
.icon-picker-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.icon-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(54, 226, 123, 0.2);
    border-radius: 0.5rem;
    flex: 1;
    min-height: 3rem;
}

.icon-preview .material-symbols-outlined {
    font-size: 1.75rem;
    color: #36e27b;
}

.icon-preview .icon-name {
    color: #9eb7a8;
    font-size: 0.875rem;
}

.btn-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(54, 226, 123, 0.1);
    border: 1px solid rgba(54, 226, 123, 0.3);
    border-radius: 0.5rem;
    color: #36e27b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-picker:hover {
    background: rgba(54, 226, 123, 0.2);
    transform: translateY(-1px);
}

.btn-picker .material-symbols-outlined {
    font-size: 1.25rem;
}

/* 색상 선택기 그리드 */
.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.color-option {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.color-option.selected {
    border-color: #36e27b;
    background: rgba(54, 226, 123, 0.1);
    box-shadow: 0 0 0 2px rgba(54, 226, 123, 0.2);
}

.color-preview {
    font-size: 1.5rem;
    font-weight: 700;
}

/* 뱃지 선택기 그리드 */
.badge-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.badge-style-option {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.badge-style-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-style-option.selected {
    border-color: #36e27b;
    background: rgba(54, 226, 123, 0.1);
    box-shadow: 0 0 0 2px rgba(54, 226, 123, 0.2);
}

.badge-preview-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
}

.badge-preview {
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.badge-preview-text {
    color: #9eb7a8;
    font-size: 0.875rem;
}

/* 버튼 타입 선택기 */
.button-type-picker {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.button-type-option {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.button-type-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button-type-option.selected {
    border-color: #36e27b;
    background: rgba(54, 226, 123, 0.1);
    box-shadow: 0 0 0 2px rgba(54, 226, 123, 0.2);
}

.button-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.button-preview {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
}

.button-preview.btn-primary {
    background: #36e27b;
    color: #112117;
}

.button-preview.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-type-label {
    color: #9eb7a8;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 아이콘 선택 모달 */
.icon-picker-modal {
    max-width: 700px;
}

.icon-picker-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.icon-search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(54, 226, 123, 0.2);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.icon-search-box .material-symbols-outlined {
    color: #36e27b;
    font-size: 1.5rem;
}

.icon-search-box input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

.icon-search-box input::placeholder {
    color: #9eb7a8;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    /* 아이콘만 있으므로 칸을 좁힘 */
    gap: 0.75rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-item:hover {
    background: rgba(54, 226, 123, 0.1);
    border-color: rgba(54, 226, 123, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.icon-item .material-symbols-outlined {
    font-size: 2.25rem;
    color: #36e27b;
    transition: transform 0.2s ease;
}

.icon-item:hover .material-symbols-outlined {
    transform: scale(1.1);
}


.icon-label {
    display: none;
    /* 아이콘만 표시하기 위해 레이블 숨김 */
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #9eb7a8;
    font-size: 1rem;
}

/* ==================== 탭 네비게이션 ==================== */
.main-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(54, 226, 123, 0.2);
}

.main-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: #9eb7a8;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    position: relative;
}

.main-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.main-tab.active {
    color: #36e27b;
    border-bottom-color: #36e27b;
}

.main-tab .material-symbols-outlined {
    font-size: 1.5rem;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(54, 226, 123, 0.2);
    color: #36e27b;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.5rem;
}

.tab-content {
    display: none;
}

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

/* ==================== 상태 필터 탭 ==================== */
.status-filter-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.status-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #9eb7a8;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.status-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.status-tab.active {
    background: rgba(54, 226, 123, 0.1);
    border-color: rgba(54, 226, 123, 0.3);
    color: #36e27b;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-tab.active .count-badge {
    background: rgba(54, 226, 123, 0.2);
    color: #36e27b;
}

/* 상태 점 */
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.status-dot.status-new {
    background: #60a5fa;
}

.status-dot.status-reviewing {
    background: #fbbf24;
}

.status-dot.status-in_progress {
    background: #a78bfa;
}

.status-dot.status-completed {
    background: #34d399;
}

/* 테이블 내 상태 뱃지 */
.inquiry-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.inquiry-status.status-new {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
}

.inquiry-status.status-reviewing {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
}

.inquiry-status.status-in_progress {
    background: rgba(167, 139, 250, 0.2);
    color: #c4b5fd;
}

.inquiry-status.status-completed {
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
}

/* 반응형 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

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

    .color-picker-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .badge-picker-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .button-type-picker {
        grid-template-columns: 1fr;
    }

    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .main-tabs {
        overflow-x: auto;
    }

    .status-filter-tabs {
        overflow-x: auto;
    }
}

/* ==================== 게시판 관리 전용 스타일 ==================== */

/* 게시판 관리 필터 버튼 */
.board-filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #9eb7a8;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.board-filter-btn:hover {
    background: rgba(54, 226, 123, 0.1);
    border-color: rgba(54, 226, 123, 0.3);
}

.board-filter-btn.active {
    background: rgba(54, 226, 123, 0.2);
    border-color: #36e27b;
    color: #36e27b;
}

/* 게시글 내용 미리보기 */
.post-content-preview {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #cbd5e1;
}

/* 상태 표시 뱃지 */
.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: rgba(54, 226, 123, 0.15);
    color: #36e27b;
    border: 1px solid rgba(54, 226, 123, 0.2);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 관리 액션 버튼 */
.board-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-sm {
    padding: 0.4rem;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-sm:hover {
    background: rgba(255, 255, 255, 1);
    color: #fff;
}

.btn-icon-sm.active {
    color: #36e27b;
    background: rgba(54, 226, 123, 0.1);
    border-color: rgba(54, 226, 123, 0.2);
}

/* ==================== 챗봇 관리 스타일 ==================== */

/* 통계 카드 */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(54, 226, 123, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(54, 226, 123, 0.15);
    border-radius: 0.75rem;
}

.stat-icon .material-symbols-outlined {
    font-size: 1.5rem;
    color: #36e27b;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #9eb7a8;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

/* 세션 카드 */
.chatbot-session-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.chatbot-session-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(54, 226, 123, 0.3);
}

.session-info {
    flex: 1;
}

.session-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #36e27b;
    margin-bottom: 0.5rem;
}

.session-id .material-symbols-outlined {
    font-size: 1rem;
}

.session-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #9eb7a8;
}

.session-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.session-meta .material-symbols-outlined {
    font-size: 1rem;
}

.session-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view:hover {
    background: rgba(54, 226, 123, 0.2);
    border-color: rgba(54, 226, 123, 0.4);
    color: #36e27b;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* 대화 상세 뷰 */
.session-detail-info {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: rgba(54, 226, 123, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.session-detail-info .info-item {
    font-size: 0.875rem;
    color: #9eb7a8;
}

.session-detail-info strong {
    color: #36e27b;
}

.chat-messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 1rem;
    border-radius: 0.75rem;
}

.chat-message.user {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.chat-message.bot {
    background: rgba(54, 226, 123, 0.1);
    border: 1px solid rgba(54, 226, 123, 0.2);
}

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

.message-role {
    font-weight: 600;
    font-size: 0.875rem;
}

.chat-message.user .message-role {
    color: #60a5fa;
}

.chat-message.bot .message-role {
    color: #36e27b;
}

.message-time {
    font-size: 0.75rem;
    color: #9eb7a8;
}

.message-content {
    color: #e0e0e0;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 검색 결과 */
.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(54, 226, 123, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    color: #9eb7a8;
}

.search-result-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-result-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(54, 226, 123, 0.3);
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.result-role {
    font-size: 1.25rem;
}

.result-time {
    font-size: 0.75rem;
    color: #9eb7a8;
}

.result-content {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.result-content mark {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
}

/* 빈 상태 & 로딩 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #9eb7a8;
}

.empty-state .material-symbols-outlined {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: #9eb7a8;
}

.loading-spinner .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
}

.page-btn {
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    color: #9eb7a8;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(54, 226, 123, 0.3);
}

.page-btn.active {
    background: rgba(54, 226, 123, 0.2);
    border-color: rgba(54, 226, 123, 0.4);
    color: #36e27b;
}

.page-ellipsis {
    padding: 0.5rem;
    color: #9eb7a8;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}