/* Pretendard ����Ʈ ���� */

html, body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    margin: 0;
    padding: 0;
}

a, .btn-link {
    color: #2563eb;
    text-decoration: none;
}

    a:hover, .btn-link:hover {
        color: #1d4ed8;
    }

.btn-primary {
    color: #fff;
    background-color: #2563eb;
    border-color: #2563eb;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem rgba(37, 99, 235, 0.4);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

/* �� ���� ǥ�� ��Ÿ�� */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #16a34a;
}

.invalid {
    outline: 1px solid #dc2626;
}

.validation-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Blazor ���� �ٿ���� UI */
.blazor-error-boundary {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>') no-repeat 1rem center / 1.5rem, #dc2626;
    padding: 1rem 1rem 1rem 3.5rem;
    color: #ffffff;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
}

    .blazor-error-boundary::after {
        content: "An unhandled error has occurred.";
    }

/* �ִϸ��̼� Ű������ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   ���̵�� �ϴ� ���� �� �ý��� �α��� ��ư ���� ��Ÿ��
   ========================================================================== */




/* ���̵�� �α��� ��ư ��Ÿ�� */


    

    

    

    

    

    

    

/* �α��� ���� �� ����� ������ ī�� */


    

    

    

    

    

        

        

/* ==========================================================================
   �α��� ������ ��� ����Ʈ UI
   ========================================================================== */
.eshq-login-page {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
    background: transparent !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.eshq-login-card {
    width: 100% !important;
    max-width: 360px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 32px 0 24px 0 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04) !important;
    animation: slideUp 0.3s ease-out !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.eshq-login-header {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.eshq-brand-logo-container {
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.eshq-login-logo {
    height: 24px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: none !important;
}

.eshq-login-subtitle {
    color: #64748b !important;
    font-size: 12.5px !important;
    margin: 0 !important;
    padding: 0 24px !important;
}

.eshq-login-alert {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    margin: 0 24px 16px 24px !important;
}

.eshq-login-card form {
    padding: 0 24px !important;
}

.eshq-field-group {
    margin-bottom: 14px !important;
}

.eshq-field-label {
    display: block !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

.eshq-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.eshq-field-icon {
    position: absolute !important;
    left: 12px !important;
    color: #94a3b8 !important;
    font-size: 18px !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.eshq-field-input {
    width: 100% !important;
    height: 40px !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0 14px 0 38px !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

    .eshq-field-input:focus {
        outline: none !important;
        background-color: #ffffff !important;
        border-color: #2563eb !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

    .eshq-field-input::placeholder {
        color: #94a3b8 !important;
    }

.eshq-field-error {
    color: #dc2626 !important;
    font-size: 11px !important;
    margin-top: 4px !important;
}

.eshq-remember-group {
    margin-bottom: 18px !important;
}

.eshq-remember-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #64748b !important;
    font-size: 12px !important;
    cursor: pointer !important;
}

.eshq-remember-checkbox {
    width: 15px !important;
    height: 15px !important;
    accent-color: #2563eb !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.eshq-btn-submit {
    width: 100% !important;
    height: 42px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
}

    .eshq-btn-submit:hover:not(:disabled) {
        background: #1d4ed8 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3) !important;
    }

    .eshq-btn-submit:disabled {
        opacity: 0.6 !important;
        cursor: not-allowed !important;
    }

.eshq-login-footer {
    text-align: center !important;
    margin-top: 18px !important;
    padding: 12px 24px 0 24px !important;
    border-top: 1px solid #f1f5f9 !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
}

/* ==========================================================================
   �̷α��� �� ������ ���߾� ���� ��� ���� ���� ī�� (Auth Lock)
   ========================================================================== */
.auth-lock-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: calc(100vh - 120px) !important;
    width: 100% !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

.auth-lock-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: 420px !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 40px 32px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.03) !important;
    animation: slideUp 0.3s ease-out !important;
}

.lock-icon-badge {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    color: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
}

    .lock-icon-badge .material-symbols-sharp {
        font-size: 28px !important;
    }

.auth-lock-title {
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
}

.auth-lock-description {
    color: #64748b !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin: 0 0 24px 0 !important;
}

.auth-lock-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 44px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

    .auth-lock-btn:hover {
        background: #1d4ed8 !important;
        color: #ffffff !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
    }

    .auth-lock-btn .material-symbols-sharp {
        font-size: 20px !important;
    }

/* �ζ��� ��ó ��ư ��Ÿ�� */
.citation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    margin: 0 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

    .citation-btn:hover {
        background-color: #2563eb;
        color: #ffffff;
        border-color: #2563eb;
        transform: translateY(-1px);
    }

/* 2�� ���� ���̾ƿ� �� Drawer �����̴� */
.rag-chat-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 120px);
    position: relative;
    overflow: hidden;
}

.chat-main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.source-drawer-panel {
    width: 400px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
}

    .source-drawer-panel.closed {
        transform: translateX(100%);
    }

    .source-drawer-panel.open {
        transform: translateX(0);
    }

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.chunk-box {
    background-color: #f1f5f9;
    border-left: 4px solid #2563eb;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
}