@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
    --vh: 1vh;
    --admin-primary: #495057;
    --admin-secondary: #6c757d;
    --admin-light: #f8f9fa;
    --admin-dark: #343a40;
    --admin-border: #dee2e6;
    --admin-hover: #e9ecef;
    --admin-text: #212529;
    --admin-text-muted: #6c757d;
    --admin-sidebar-width: 280px;
    --admin-header-height: 64px;
}


html, body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-variant-numeric: tabular-nums;
    height: calc(var(--vh, 1vh) * 100);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    height: 100dvh;
}

body {
    min-height: 100%;
    min-height: 100dvh !important;
    height: 100%;
    height: 100dvh !important;
    overflow-x: hidden;
    position: relative;
}


/* iOS Safari에서 스크롤 문제 해결 */
@supports (-webkit-touch-callout: none) {
    body {
        position: fixed;
        overflow: hidden;
        width: 100%;
    }
}

.text-danger{
    padding-top:5px;
}
a, .btn-link {
    color: #006bb7;
    text-decoration: none;
}

.admin-header .text-muted {
    /* color: #fff !important; */
    color: #000 !important;
    font-size: 0.875rem;
}


.btn.btn-light{
    color: #7e8299;
}

.btn-primary {
    color: #fff;
    background-color: #2b2c3f;
    border-color: #2b2c3f;
}

.btn-group-lg>.btn, .btn-lg {
    font-size:0.9rem;
    padding: 1.75rem 1.15rem;
    border-radius: 0;
}

.btn:not(.btn-outline):not(.btn-dashed):not(.border-hover):not(.border-active):not(.btn-flush):not(.btn-icon).btn-lg, .btn-group-lg > .btn:not(.btn-outline):not(.btn-dashed):not(.border-hover):not(.border-active):not(.btn-flush):not(.btn-icon)
{
 padding:calc(0.825rem + 1px) calc(1.75rem + 1px);   
}
/* .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
} */
.wrap-box{
    min-width:345px;
    border:1px solid #e7e7e7;
    border-radius: 10px;
    box-shadow: 2px 2px 10px #e7e7e7;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.form-control::placeholder {
    color: #c1c4d1;
}

.h-50px{
    height:50px;
}

.h-80px {
    min-height: 80px;
}
.w-50px{
    width:50px;
}
.w-100px{
    width:100px !important;
}
.w-auto{
    width:auto;
}

.max-w-332px{
    max-width:332px;
}

.max-w-100 {
    max-width:100%;
}

.h-20px {
    height:20px;
}

.fs-7 {
    font-size: 0.65rem;
}

.fs-8 {
    font-size: 0.55rem;
}

.fs-9 {
    font-size: 0.45rem;
}

.fs-10px{
    font-size: 10px;
}
.fs-12px{
    font-size: 12px;
}
.fs-14px {
    font-size: 14px;
}
.fs-16px {
    font-size: 16px;
}
.fs-18px {
    font-size: 18px;
}
.fs-20px {
    font-size: 20px;
}
.fs-22px {
    font-size: 22px;
}
.fs-24px {
    font-size: 22px;
}

.fs-25px {
    font-size: 25px;
}

.fs-28px {
    font-size: 28px;
}

.fs-30px {
    font-size: 30px;
}
.fs-36px {
    font-size: 30px;
}


.flex-row-fluid{
    flex: 1 auto;
    min-width:0;
}
.flex-column-fluid {
    flex: 1 0 auto;
}

.flex-row-auto {
    flex: 0 0 auto;
}
.flex-center {
    justify-content: center !important;
    align-items: center !important;
}


.form-label {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight:500;
    color: #3f4254;
}

.form-control{
    display: block;
    width:100%;
    padding: 0.775rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    line-height:1.5;
    color: #181c32;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #a1a5b7;
    appearance: none;
    border-radius: 2px;
    box-shadow: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    /* font-family: 'Pretendard'; */
}

.form-control:focus {
    border: 1px solid #a1a5b7;
    box-shadow: none;
}


._auth_textbox{
    border-radius: 2px;
    border: 1px solid #c1c1c1;
    background: #fff;
    box-shadow: 0px 1px 10px 0 rgba(0, 0, 0, 0.10);
    height: 48px;
}

.auth-bg-primary {
    background: #2b2c3f;
}
.separator{
    display: block;
    height: 0;
    border-bottom: 1px solid #f4f4f4;
}

.separator.separator-content {
    display: flex;
    align-items: center;
    border-bottom: 0;
    text-align: center;
}
.separator.separator-content::before{
    margin-right:1.25rem;
}
.separator.separator-content::before, .separator.separator-content::after{
    content:"";
    width:50%;
    border-bottom: 1px solid #f4f4f4;
}
.separator.separator-content::after{
    margin-left:1.25rem;
}
.bottom-0 {
    bottom:0;
}

.top-0 {
    top: 0;
}

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}
.mb-5 {
    margin-bottom:1.25rem !important;
}
.mb-10{
    margin-bottom: 2.5rem !important;
}
.mb-20 {
    margin-bottom: 5rem !important;
}
.mt-15{
    margin-top: 3.75rem !important;
}

.py-10{
    padding-top: 9rem !important;
    padding-bottom: 2.5rem !important
}

.text-gray-700{
    color: #5e6278;
}

.fs-6{
    font-size: 0.8rem !important;
}
.w-f-9, .w-fs-9 {
    font-size: 9px !important;
}
.w-f-10, .w-fs-10 {
    font-size: 10px !important;
}
.w-f-11, .w-fs-11 {
    font-size: 11px !important;
}
.w-f-12, .w-fs-12 {
    font-size: 12px !important;
}
.w-f-13, .w-fs-13 {
    font-size: 13px !important;
}
.w-f-14, .w-fs-14{
    font-size: 14px !important;
}
.w-f-16, .w-fs-16 {
    font-size: 16px !important;
}
.w-f-18, .w-fs-18 {
    font-size: 18px !important;
}
.fw-bold{
    font-weight: 600 !important;
}
.f-ns-bold, .w-fw-bold {
    font-weight: 700;
}

.auth-bg-white {
    background: #fff;
}

.login-wrap {
    display: flex;
}

.p-lg-15{
    padding:2rem;
}

.fw-100 { font-weight: 100 !important; }
.fw-200 { font-weight: 200 !important; }
.fw-300 { font-weight: 300 !important; }
.fw-400 { font-weight: 400 !important; } /* normal */
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; } /* bold */
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }


@media(min-width:1200px){
    .w-xl-500px {
        width: 500px;
    }
    .position-xl-fixed {
        position: fixed;
    }
    .d-xl-block{
        display: block !important;
    }
}


@media(min-width:992px){
    .w-lg-500px {
        width: 500px !important;
    }
    .p-lg-15 {
        padding: 3.75rem !important;
    }
    .p-lg-20 {
        padding: 5rem !important;
    }
    .flex-lg-row-auto {
        flex: 0 0 auto;
    }
    .flex-lg-row-fluid {
        flex: 1 auto;
        min-width: 0;
    }
}

@media(max-width:991px){
    .login-wrap, .login-wrap form input, .login-wrap form label {
        font-size:16px !important;
    }
   
    .wrap-box{
        border: 0;
        box-shadow: none;
        border-radius: 0;

    }
    .mb-10{
        margin-bottom:1.5rem !important;
    }
    .py-10{
        padding-top: 1rem !important;
    }
    .p-lg-15{
        padding: .5rem !important;
    }
    .flex-column-fluid {
        flex: 1 auto;
        margin: 0.5rem;
    }
    .mt-15{
        margin-top: 3rem !important;
    }
}

/* ========================================
   관리자 패널 스타일 (Admin CSS)
   ======================================== */

.admin-layout {
    min-height: 100vh;
    background-color: var(--admin-light);
}

.admin-header {
    height: var(--admin-header-height);
    background-color: white;
    border-bottom: 1px solid var(--admin-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.admin-sidebar {
    width: var(--admin-sidebar-width);
    background-color: white;
    border-right: 1px solid var(--admin-border);
    position: fixed;
    top: var(--admin-header-height);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1020;
}

.admin-content {
    margin-left: var(--admin-sidebar-width);
    margin-top: var(--admin-header-height);
    padding: 2rem;
    min-height: calc(100vh - var(--admin-header-height));
}

/* =============
   헤더 스타일
   ============= */

.admin-brand {
    padding-left: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--admin-dark);
    text-decoration: none !important;
}

.admin-brand:hover {
    color: var(--admin-primary);
}

.admin-header-btn {
    background: none;
    border: none;
    color: var(--admin-text);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.admin-header-btn:hover {
    background-color: var(--admin-hover);
    color: var(--admin-dark);
}

/* =============
   사이드바 스타일
   ============= */

.admin-user-info {
    background-color: var(--admin-light);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem;
}

.admin-nav-link {
    color: var(--admin-text);
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    border-radius: 0;
    border: none;
    background: none;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.admin-nav-link:hover {
    background-color: var(--admin-hover);
    color: var(--admin-dark);
}

.admin-nav-link.active {
    background-color: var(--admin-primary);
    color: white;
}

.admin-nav-link.active:hover {
    background-color: var(--admin-dark);
}

.admin-nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    opacity: 0.7;
}

.admin-nav-link.active .admin-nav-icon {
    opacity: 1;
}

.admin-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem 0.5rem;
    margin: 0;
}

.admin-divider {
    height: 1px;
    background-color: var(--admin-border);
    margin: 1rem 0;
}

/* =============
   비인증 상태 스타일
   ============= */

.admin-access-denied {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--admin-light) 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-access-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--admin-border);
    padding: 3rem;
    max-width: 500px;
    text-align: center;
}

.admin-access-icon {
    width: 64px;
    height: 64px;
    color: var(--admin-secondary);
    margin-bottom: 1.5rem;
}

.admin-info-badge {
    background-color: var(--admin-hover);
    color: var(--admin-text);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* =============
   설정 페이지 스타일
   ============= */

.system-settings-admin {
    background-color: #f8f9fa;
    min-height: 100vh;
    margin: -2rem;
    padding: 2rem;
}

.settings-header {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.settings-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.settings-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.settings-card-header {
    background: #6c757d;
    color: white;
    border-radius: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.settings-card-header.primary {
    background: #495057;
}

.settings-card-header.success {
    background: #6c757d;
}

.settings-card-header.warning {
    background: #868e96;
}

.settings-card-body {
    padding: 1.5rem;
}

/* =============
   폼 컨트롤 스타일
   ============= */

.form-label-bold {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.form-control-custom {
    border: 1px solid #ced4da;
    border-radius: 0;
    padding: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom:focus {
    border-color: #495057;
    box-shadow: 0 0 0 0.2rem rgba(73, 80, 87, 0.1);
}

.form-select-custom {
    border: 1px solid #ced4da;
    border-radius: 0;
    padding: 0.75rem;
    background-color: white;
    transition: border-color 0.2s ease;
}

.form-select-custom:focus {
    border-color: #495057;
    box-shadow: 0 0 0 0.2rem rgba(73, 80, 87, 0.1);
}

.form-switch-custom .form-check-input {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.form-switch-custom .form-check-input:checked {
    background-color: #495057;
    border-color: #495057;
}

.form-range-custom::-webkit-slider-thumb {
    background: #495057;
}

.form-range-custom::-moz-range-thumb {
    background: #495057;
    border: none;
}

/* =============
   버튼 스타일
   ============= */

.btn-custom-primary {
    background-color: #495057;
    border-color: #495057;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-custom-primary:hover {
    background-color: #343a40;
    border-color: #343a40;
    color: white;
}

.btn-custom-outline {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-custom-outline:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* =============
   알림 스타일
   ============= */

.alert-custom {
    border-radius: 0;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-width: 1px;
}

.alert-custom-success {
    background-color: #f8f9fa;
    border-color: #6c757d;
    color: #495057;
}

.alert-custom-error {
    background-color: #f8f9fa;
    border-color: #dc3545;
    color: #721c24;
}

.alert-custom-warning {
    background-color: #f8f9fa;
    border-color: #ffc107;
    color: #856404;
}

/* =============
   기타 유틸리티
   ============= */

.section-divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 1.5rem 0;
}

.loading-spinner {
    color: #6c757d;
}

/* =============
   반응형 디자인
   ============= */

/* =============
   프롬프트 미리보기 모달 스타일
   ============= */

.final-prompt-preview {
    background: var(--admin-light);
    border-radius: 0;
    padding: 1rem;
}

.final-prompt-text {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 0;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: var(--admin-text);
}

.prompt-analysis {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--admin-border);
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-label {
    font-weight: 500;
    color: var(--admin-text);
    flex: 1;
}

.analysis-count {
    color: var(--admin-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.mode-config-panel {
    background: var(--admin-light);
    border-radius: 0;
    padding: 1.5rem;
    border: 1px solid var(--admin-border);
}

.btn-custom-secondary {
    background-color: var(--admin-secondary);
    border-color: var(--admin-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-custom-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: white;
}

/* =============
   세션 모니터 페이지 스타일
   ============= */

.session-monitor-admin {
    background-color: #f8f9fa;
    min-height: 100vh;
    margin: -2rem;
    padding: 2rem;
}

/* 통계 카드들 */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.stats-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stats-card.primary::before {
    background: linear-gradient(90deg, #495057, #6c757d);
}

.stats-card.warning::before {
    background: linear-gradient(90deg, #6c757d, #868e96);
}

.stats-card.info::before {
    background: linear-gradient(90deg, #868e96, #adb5bd);
}

.stats-card.danger::before {
    background: linear-gradient(90deg, #343a40, #495057);
}

.stats-card-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #6c757d;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #495057;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stats-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* 세션 분석 */
.session-analysis {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analysis-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e9ecef;
}

.analysis-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #495057;
    flex: 1;
}

.analysis-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #343a40;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.status-active {
    background-color: #28a745;
}

.status-indicator.status-inactive {
    background-color: #6c757d;
}

.status-indicator.status-duplicate {
    background-color: #ffc107;
}

.status-indicator.status-suspicious {
    background-color: #dc3545;
}

/* 모드별 분포 */
.mode-distribution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mode-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.mode-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mode-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-badge.mode-strict {
    background-color: #495057;
    color: white;
}

.mode-badge.mode-normal {
    background-color: #6c757d;
    color: white;
}

.mode-badge.mode-loose {
    background-color: #adb5bd;
    color: #343a40;
}

.mode-badge.mode-unknown {
    background-color: #e9ecef;
    color: #6c757d;
}

.mode-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
}

.mode-count {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.mode-progress {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.mode-progress .progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.mode-progress .progress-bar.mode-strict {
    background-color: #495057;
}

.mode-progress .progress-bar.mode-normal {
    background-color: #6c757d;
}

.mode-progress .progress-bar.mode-loose {
    background-color: #adb5bd;
}

/* 사용자별 세션 목록 */
.user-sessions-list {
    max-height: 300px;
    overflow-y: auto;
}

.user-session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.user-session-item:hover {
    background: #e9ecef;
}

.user-info {
    flex: 1;
}

.user-name {
    display: flex;
    align-items: center;
}

.user-name code {
    background: white;
    color: #495057;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.session-count {
    font-size: 0.875rem;
    color: #6c757d;
}

.warning-badge, .danger-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.warning-badge {
    background-color: #495057;
    color: white;
}

.danger-badge {
    background-color: #343a40;
    color: white;
}

.btn-remove {
    background: none;
    border: none;
    color: #6c757d;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-remove:hover {
    background: #dc3545;
    color: white;
}

/* IP별 세션 목록 */
.ip-sessions-list {
    max-height: 300px;
    overflow-y: auto;
}

.ip-session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.ip-session-item:hover {
    background: #e9ecef;
}

.ip-info {
    flex: 1;
}

.ip-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.ip-address code {
    background: white;
    color: #495057;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.btn-block {
    background: none;
    border: none;
    color: #6c757d;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-block:hover {
    background: #343a40;
    color: white;
}

/* 세션 테이블 */
.session-table-container {
    max-height: 600px;
    overflow-y: auto;
}

.session-table {
    margin-bottom: 0;
}

.session-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.session-table td {
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.875rem;
}

.session-table tr:hover {
    background-color: #f8f9fa;
}

.session-table tr.session-expired {
    background-color: #fff3cd;
}

.session-table tr.session-suspicious {
    background-color: #f8d7da;
}

.session-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-status.status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.session-status.status-inactive {
    background-color: #e2e3e5;
    color: #383d41;
}

.session-status.status-expired {
    background-color: #fff3cd;
    color: #664d03;
}

.session-status.status-suspicious {
    background-color: #f8d7da;
    color: #721c24;
}

.user-cell strong {
    color: #495057;
    font-size: 0.875rem;
}

.user-cell small {
    font-size: 0.75rem;
}

.ip-code {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.session-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-action {
    background: none;
    border: none;
    padding: 0.375rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-action-info {
    color: #6c757d;
}

.btn-action-info:hover {
    background: #17a2b8;
    color: white;
}

.btn-action-danger {
    color: #6c757d;
}

.btn-action-danger:hover {
    background: #dc3545;
    color: white;
}

.table-footer {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #adb5bd;
}

.empty-state p {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 카드 헤더 스타일 확장 */
.settings-card-header.secondary {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

.settings-card-header.info {
    background: linear-gradient(135deg, #868e96, #adb5bd);
    color: white;
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .session-monitor-admin {
        margin: -1rem;
        padding: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .user-session-item,
    .ip-session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .btn-remove,
    .btn-block {
        align-self: flex-end;
    }
    
    .session-table-container {
        max-height: 400px;
    }
    
    .session-table {
        font-size: 0.8rem;
    }
    
    .session-actions {
        flex-direction: column;
    }
}

/* =============
   시스템 프롬프트 페이지 스타일
   ============= */

.system-prompts-admin {
    background-color: #f8f9fa;
    min-height: 100vh;
    margin: -2rem;
    padding: 2rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 0;
}

.admin-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--admin-secondary);
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 0;
}

.admin-tab:hover {
    color: var(--admin-primary);
    background-color: var(--admin-hover);
}

.admin-tab.active {
    color: var(--admin-primary);
    border-bottom-color: var(--admin-primary);
    background-color: white;
}

.tab-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 서브탭 스타일 (Think/Response 구분) */
.sub-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    background: var(--admin-light);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.sub-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: var(--admin-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.sub-tab:hover {
    color: var(--admin-text);
    background: rgba(255, 255, 255, 0.7);
}

.sub-tab.active {
    color: white;
    background: var(--admin-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 설정 섹션 헤더 */
.config-section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--admin-border);
}

.config-section-header h6 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.config-section-header p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--admin-text-muted);
}

/* Think/Response 구성 영역 */
.thinking-config,
.response-config {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

/* =============
   반응형 디자인
   ============= */

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .admin-header {
        padding: 0 1rem;
    }
    
    .settings-header {
        margin: -1rem -1rem 1rem -1rem;
        border-radius: 0;
    }
    
    .system-settings-admin {
        margin: -1rem;
        padding: 1rem;
    }
    
    .final-prompt-text {
        font-size: 0.8rem;
        max-height: 300px;
    }
    
    .modal-dialog.modal-xl {
        max-width: 95%;
        margin: 1rem;
    }
    
    .mode-config-panel {
        padding: 1rem;
    }
    
    .btn-custom-secondary.btn-sm {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* =============
   토스트 메시지 스타일
   ============= */

.toast-container {
    z-index: 9999 !important;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    opacity: 1;
    animation: slideInRight 0.3s ease-out;
    border-width: 2px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.toast.show {
    display: block;
}

.toast-header {
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-body {
    font-size: 0.875rem;
    padding: 0.75rem;
    background-color: #fff;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* 토스트 애니메이션 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in;
}

/* 모바일에서 토스트 크기 조정 */
@media (max-width: 768px) {
    .toast {
        min-width: 280px;
        max-width: 95vw;
    }
    
    .toast-container {
        padding: 1rem !important;
    }
}

/* =============
   세션 상태 범례 스타일
   ============= */

.session-status-legend {
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
    background: #f8f9fa;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.legend-text {
    color: #495057;
}

.legend-item .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

/* 상태 표시기 색상 (범례용) */
.legend-item .status-active {
    background-color: #28a745;
}

.legend-item .status-inactive {
    background-color: #6c757d;
}

.legend-item .status-suspicious {
    background-color: #fd7e14;
}

.legend-item .status-expired {
    background-color: #dc3545;
}

@media (max-width: 768px) {
    .session-status-legend .row {
        flex-direction: column;
    }
    
    .session-status-legend .col-md-4 {
        margin-top: 1rem;
        text-align: left !important;
    }
}

/* ===== 룸 통계 무채색 스타일 ===== */
.room-stats-admin {
    /* padding: 1.5rem; */
    background: #f8f9fa;
    min-height: 100vh;
}

.room-stats-header {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.room-stats-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.room-stats-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.room-stats-card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.25rem;
}

.room-stats-card-header h5 {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

.room-stats-card-body {
    padding: 1.25rem;
}

/* 통계 아이콘 */
.room-stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.room-stats-icon.bg-primary-subtle {
    background: #e7f3ff;
    color: #0066cc;
}

.room-stats-icon.bg-success-subtle {
    background: #e7f5e7;
    color: #0d6efd;
}

.room-stats-icon.bg-info-subtle {
    background: #e3f2fd;
    color: #0277bd;
}

.room-stats-icon.bg-warning-subtle {
    background: #fff8e1;
    color: #f57c00;
}

/* 통계 값 */
.room-stats-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.room-stats-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* 통계 아이템 */
.room-stats-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.room-stats-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 사용자 아바타 */
.room-stats-user-avatar {
    width: 32px;
    height: 32px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.room-stats-user-name {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

/* 진행률 바 */
.room-stats-progress-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 100px;
}

.room-stats-progress {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.room-stats-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6c757d 0%, #495057 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.room-stats-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    min-width: 30px;
    text-align: right;
}

/* 크기 라벨 */
.room-stats-size-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

/* 테이블 스타일 */
.room-stats-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.room-stats-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.room-stats-table thead {
    background: #f8f9fa;
}

.room-stats-table th {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    text-align: left;
}

.room-stats-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
}

.room-stats-table tbody tr:hover {
    background: #f8f9fa;
}

.room-stats-table tbody tr.room-empty {
    background: #fff8e1;
}

.room-stats-table tbody tr.room-pinned {
    background: #e3f2fd;
}

/* 룸 제목 */
.room-stats-room-title {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* 사용자 정보 */
.room-stats-user-info strong {
    color: #495057;
    font-size: 0.9rem;
}

/* 메시지 카운트 */
.room-stats-message-count .fw-semibold {
    color: #495057;
    font-size: 1rem;
}

/* 활동 시간 */
.room-stats-activity {
    font-size: 0.85rem;
}

.room-stats-activity span {
    color: #495057;
    font-weight: 500;
}

/* 상태 배지 */
.room-stats-status {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-stats-status.status-active {
    background: #d4edda;
    color: #155724;
}

.room-stats-status.status-recent {
    background: #d1ecf1;
    color: #0c5460;
}

.room-stats-status.status-inactive {
    background: #e2e3e5;
    color: #383d41;
}

.room-stats-status.status-empty {
    background: #fff3cd;
    color: #856404;
}

/* 기간별 통계 */
.room-stats-period-stats {
    margin-bottom: 1.5rem;
}

.room-stats-period-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.room-stats-period-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 구분선 */
.room-stats-divider {
    height: 1px;
    background: #e9ecef;
    margin: 1.5rem 0;
}

/* 요약 정보 */
.room-stats-summary h6 {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
}

.room-stats-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.room-stats-summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.room-stats-summary-item small {
    flex: 1;
    color: #6c757d;
    font-size: 0.8rem;
}

.room-stats-summary-item .fw-semibold {
    color: #495057;
    font-size: 0.85rem;
}

/* 빈 상태 */
.room-stats-empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.room-stats-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* 반응형 */
@media (max-width: 768px) {
    .room-stats-admin {
        padding: 1rem;
    }
    
    .room-stats-header {
        padding: 1rem;
    }
    
    .room-stats-card-body {
        padding: 1rem;
    }
    
    .room-stats-table-container {
        font-size: 0.8rem;
    }
    
    .room-stats-table th,
    .room-stats-table td {
        padding: 0.5rem;
    }
    
    .room-stats-progress-container {
        min-width: 80px;
    }
}


.text-gray-100 { color: #f3f4f6; } /* 가장 연함 */
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; } /* 중간 톤 */
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; } /* 가장 진함 */


/* Bootstrap-like utility */
.focus-none:focus,
.focus-none:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
}

/* (옵션) 마우스 클릭 포커스는 숨기고, 키보드 포커스만 보이게 */
.focus-outline-none:focus {
    outline: 0 !important;
    box-shadow: none !important;
}

.focus-outline-none:focus-visible {
    outline: 2px solid rgba(13,110,253,.5) !important; /* bs primary 느낌 */
    outline-offset: 2px;
}

#components-reconnect-modal:empty {
    display: none !important;
    pointer-events: none !important;
}

#components-reconnect-modal {
    pointer-events: none;
}
