@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --accent: #8b5cf6;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}

a:hover, .btn-link:hover {
    color: var(--primary-dark);
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.divider-text {
    position: relative;
    background: var(--bg-primary);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 소셜 로그인 버튼 스타일 */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.social-btn svg {
    flex-shrink: 0;
}

.social-btn-google {
    background-color: #ffffff;
    color: #3c4043;
    border-color: #dadce0;
}

.social-btn-google:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    color: #3c4043;
}

.social-btn-naver {
    background-color: #03C75A;
    color: #ffffff;
    border-color: #03C75A;
}

.social-btn-naver:hover {
    background-color: #02b350;
    border-color: #02b350;
    color: #ffffff;
}

.social-btn-naver svg {
    filter: brightness(0) invert(1);
}

.btn-primary {
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-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;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Blazor 기본 재연결 모달 완전히 숨기기 */
.components-reconnect-modal,
.components-reconnect-modal *,
[data-reconnect-modal],
[data-reconnect-modal] *,
.components-reconnect-show,
.components-reconnect-failed,
.components-reconnect-rejected,
.components-reconnect-hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
}

/* "Rejoining the server..." 텍스트 숨기기 */
*:contains("Rejoining the server"),
*:contains("Reconnecting"),
*:contains("Attempting to reconnect") {
    display: none !important;
    visibility: hidden !important;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.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."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.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;
}

/* 회사 홈페이지 스타일 - 미니멀 버전 */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-primary);
    padding: 80px 0;
    margin: -1.1rem -1.5rem 0 -1.5rem;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Q&A 페이지 스타일 - 미니멀 버전 */
.page-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-primary);
    padding: 60px 0;
    margin: -1.1rem -1.5rem 0 -1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.chatbot-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 2rem;
    height: 600px;
    display: flex;
    flex-direction: column;
}

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

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.message {
    margin-bottom: 1rem;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.user-message .message-content {
    flex-direction: row-reverse;
}

.bot-avatar, .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bot-avatar {
    background: #667eea;
}

.user-avatar {
    background: #6c757d;
}

.message-text {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    max-width: 70%;
}

.user-message .message-text {
    background: #667eea;
    color: white;
}

.message-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.user-message .message-time {
    text-align: right;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chatbot-input {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.quick-questions {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.faq-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Q&A 페이지 스타일 - 네비게이션 포함 */
article.content:has(.qa-container) {
    padding: 0 !important;
}

article.content:has(.qna-container) {
    padding: 0 !important;
}

.qa-container {
    height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.qna-container {
    height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.qna-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #ffffff;
}

.qna-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.chatbot-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

.chatbot-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot-input-area {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    background: #ffffff;
    flex-shrink: 0;
}

.input-group-area {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
}

.form-control-area {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 3rem;
    max-height: 15rem;
    line-height: 1.5;
}

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

.textarea-input {
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.btn-send-area {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
}

.message {
    margin-bottom: 0.5rem;
}

.message-text {
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 1rem;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* RAG Q&A 페이지 스타일 */
.qna-wrapper {
    height: calc(100vh - 3.5rem - 60px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

.qna-messages-area,
.qna-list-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Q&A 아이템 스타일 */
.qa-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.qa-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.qa-question {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    user-select: none;
}

.qa-question:hover {
    background: #e9ecef;
}

.qa-question-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.qa-question-content i {
    color: #667eea;
    font-size: 1.25rem;
}

.qa-question-content span {
    font-weight: 500;
    color: #212529;
    font-size: 1rem;
}

.qa-question > i {
    color: #6c757d;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.qa-answer {
    padding: 1.25rem;
    background: #ffffff;
    border-top: 1px solid #f1f3f5;
}

.qa-answer-content {
    color: #495057;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.qa-error {
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fff5f5;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

.qa-error i {
    font-size: 1.25rem;
}

/* OCR 입력 영역 스타일 */
.input-with-ocr {
    position: relative;
    width: 100%;
    transition: var(--transition);
}

.input-with-ocr.drag-over {
    background-color: #f0f9ff;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
}

.cursor-style .input-with-ocr.drag-over {
    background-color: #2f3f4f;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.ocr-status {
    text-align: center;
    padding: 0.5rem;
}

/* Cursor 스타일 입력창 */
.cursor-style {
    background: #1a1a1a;
    border-top: 1px solid #2d2d2d;
    padding: 0.75rem 1rem;
}

.cursor-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: 100%;
}

.cursor-input-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cursor-textarea {
    width: 100%;
    background: #2a2a2a;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 1.5rem;
    max-height: 20rem;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cursor-textarea::placeholder {
    color: #888888;
}

.cursor-textarea:focus {
    outline: none;
    background: #2f2f2f;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cursor-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.cursor-control-left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cursor-control-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cursor-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #2a2a2a;
    border: none;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cursor-dropdown-btn:hover {
    background: #333333;
}

.cursor-infinity {
    font-size: 1rem;
    font-weight: 300;
}

.cursor-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #888888;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.cursor-icon-btn:hover {
    background: #2a2a2a;
    color: #e0e0e0;
}

.cursor-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #4a4a4a;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.cursor-send-btn:hover:not(:disabled) {
    background: #5a5a5a;
    transform: scale(1.05);
}

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

.cursor-send-btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* 첨부된 이미지 미리보기 */
.attached-image-preview {
    position: relative;
    margin-bottom: 0.5rem;
    display: inline-block;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
}

.attached-image-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 150px;
    object-fit: contain;
}

.btn-remove-image {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 1rem;
    padding: 0;
    transition: all 0.2s ease;
}

.btn-remove-image:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.qna-input-area {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    background: #ffffff;
    flex-shrink: 0;
}

.qna-input-area.cursor-style {
    border-top: 1px solid #2d2d2d;
    background: #1a1a1a;
    padding: 0.75rem 1rem;
}

.welcome-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.welcome-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.welcome-message h3 {
    color: #212529;
    margin-bottom: 0.5rem;
}

.citations {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 3px solid #667eea;
}

.citations ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.citations li {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #495057;
}

.citation-text {
    display: block;
    font-style: italic;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}


.modal-header h5 {
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: #000;
}

/* PLC 홈페이지 스타일 - 미니멀 버전 */
.plc-hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-primary);
    padding: 80px 0;
    margin: -1.1rem -1.5rem 0 -1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.plc-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.plc-logo-area {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

.plc-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.plc-logo:hover {
    transform: scale(1.05);
}

.plc-circuit-pattern {
    width: 80px;
    height: 80px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.plc-circuit-pattern:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.plc-circuit-pattern::before,
.plc-circuit-pattern::after {
    content: '';
    position: absolute;
    background: var(--text-tertiary);
    border-radius: 1px;
}

.plc-circuit-pattern::before {
    width: 30px;
    height: 1.5px;
    top: 20px;
    left: 20px;
}

.plc-circuit-pattern::after {
    width: 1.5px;
    height: 30px;
    top: 20px;
    right: 20px;
}

.plc-main-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.plc-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

.plc-feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.plc-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.plc-icon-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.plc-feature-card:hover .plc-icon-box {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.plc-icon {
    font-size: 1.75rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.plc-feature-card:hover .plc-icon {
    color: white;
}

.plc-feature-card h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.plc-feature-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 400;
}

/* 회사 소개 페이지 스타일 */
.about-image {
    text-align: center;
}

.placeholder-image {
    background: #e9ecef;
    border-radius: 10px;
    padding: 100px 20px;
    color: #6c757d;
}

.value-card {
    padding: 2rem;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    border-radius: 5px;
    height: 100%;
}

.value-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.timeline-year {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    margin-right: 2rem;
}

.timeline-content {
    flex: 1;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

/* 서비스 페이지 스타일 */
.service-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.cta-section {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 60px 0;
    margin: 3rem -1.5rem -1.1rem -1.5rem;
    border-top: 1px solid var(--border);
}

.cta-section h2,
.cta-section p {
    color: var(--text-primary);
}

/* 제품소개 페이지 스타일 */
.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.product-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    text-align: center;
}

.product-placeholder {
    font-size: 4rem;
    color: white;
}

.product-content {
    padding: 1.5rem;
}

.product-description {
    color: #6c757d;
    margin-bottom: 1rem;
    min-height: 3rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.product-features li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #6c757d;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin: 1rem 0;
}

/* 매뉴얼 페이지 스타일 */
.manual-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.manual-section:last-child {
    border-bottom: none;
}

.manual-content h4 {
    color: #667eea;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.manual-sidebar {
    position: sticky;
    top: 20px;
}

.download-list, .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li, .link-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.download-list li:last-child, .link-list li:last-child {
    border-bottom: none;
}

.download-list a, .link-list a {
    color: #667eea;
    text-decoration: none;
}

.download-list a:hover, .link-list a:hover {
    text-decoration: underline;
}

/* 자료실 페이지 스타일 */
.resource-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.resource-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.resource-meta {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.resource-actions {
    margin-top: 1rem;
}

/* 연락처 페이지 스타일 */
.contact-form-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.contact-info-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    height: 100%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h5 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    color: #6c757d;
}

/* 회원가입 페이지 스타일 */
.register-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* 문서 업로드 영역 스타일 */
.upload-area {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background: var(--bg-secondary);
    transition: var(--transition);
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.upload-area.file-selected {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.upload-area .form-control {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.upload-hint {
    pointer-events: none;
    z-index: 1;
}

.upload-hint i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-hint p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    font-weight: 500;
}

.upload-hint small {
    color: var(--text-secondary);
}

.selected-file {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.selected-file i {
    font-size: 1.25rem;
}

/* 모바일 버튼 표시 보장 */
@media (max-width: 768px) {
    /* 모든 버튼이 모바일에서 보이도록 보장 */
    .btn,
    button:not([type="hidden"]),
    .social-btn,
    .social-login-buttons a,
    input[type="submit"],
    input[type="button"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0.75rem !important;
        min-height: 44px !important; /* 터치 타겟 크기 보장 */
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* 소셜 로그인 버튼 컨테이너 */
    .social-login-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    /* 특정 버튼 스타일 보장 */
    .btn-primary,
    .btn-success,
    .btn-outline-primary,
    .btn-lg,
    .btn-primary.btn-lg {
        display: inline-block !important;
        width: 100% !important;
        max-width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* 모바일 레이아웃 개선 */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    .register-card,
    .contact-form-card {
        padding: 1.5rem !important;
        margin: 0 !important;
    }
    
    /* 모바일에서 폼 요소 개선 */
    .form-control,
    .form-select {
        font-size: 16px !important; /* iOS 줌 방지 */
        min-height: 44px !important;
    }
    
    /* 모바일에서 사이드바 처리 */
    @media (max-width: 640.98px) {
        .sidebar {
            position: fixed;
            left: -250px;
            transition: left 0.3s ease;
            z-index: 1000;
            height: 100vh;
            overflow-y: auto;
        }
        
        .sidebar:not(.collapse) {
            left: 0;
        }
        
        main {
            width: 100%;
            margin-left: 0 !important;
        }
        
        /* 모바일에서 네비게이션 토글 버튼 보장 */
        .navbar-toggler {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            z-index: 1001 !important;
        }
    }
    
    /* 모바일에서 버튼이 다른 요소에 가려지지 않도록 */
    .btn,
    button {
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
}

/* PWA 설치 프롬프트 숨김 */
#pwa-install-prompt {
    display: none !important;
}

/* 모바일 브라우저 주소창 높이 보정 */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 !important;
    }
    
    .hero-section {
        padding: 60px 0 !important;
    }
}