/* Professional Documentation Styles */
:root {
    --primary-color: #004b9b;
    --sidebar-bg: #f8f9fa;
    --border-color: #e9ecef;
    --text-main: #212529;
    --text-muted: #6c757d;
    --accent: #007bff;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 20px;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.search-bar {
    margin-left: auto;
    width: 300px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

/* Main Layout */
.main-container {
    display: flex;
    flex: 1;
}

/* Sidebar */
aside {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

aside nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

aside nav .nav-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px 24px 8px;
    text-transform: uppercase;
}

aside nav a {
    display: block;
    padding: 8px 24px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

aside nav a:hover, aside nav a.active {
    background: #eef2f7;
    color: var(--primary-color);
    font-weight: 600;
}

/* Content Area */
main {
    flex: 1;
    padding: 48px 64px;
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

h2 {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

h3 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 16px;
}

p {
    margin-bottom: 1.5rem;
}

.info-box {
    background: #f1f3f5;
    border-left: 4px solid var(--primary-color);
    padding: 16px 24px;
    margin: 24px 0;
    border-radius: 0 4px 4px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

table th, table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Section visibility */
section {
    display: none;
}

section.active {
    display: block;
}

/* Footer */
footer {
    background: #343a40;
    color: #fff;
    padding: 40px 24px;
    font-size: 13px;
    text-align: center;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 992px) {
    aside {
        display: none;
    }
    main {
        padding: 24px;
    }
}

/* Form Styles */
.contact-form {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* Hero Section for Landing Page */
.hero-content {
    background: linear-gradient(135deg, rgba(0,75,155,0.9) 0%, rgba(0,30,70,0.9) 100%), url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: white;
    padding: 80px 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-content h2 {
    font-size: 42px;
    color: white;
    border-bottom: none;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Feature Cards on Landing Page */
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.landing-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.landing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.landing-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 20px;
}

/* Chatbot Widget Styles */
#chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}
#chat-toggle {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 75, 155, 0.4);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
#chat-toggle:hover {
    transform: scale(1.05);
}
#chat-window {
    display: none;
    width: 380px;
    height: 550px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    border: 1px solid #eaeaea;
}
#chat-window.active {
    display: flex;
}
#chat-header {
    background: var(--primary-color);
    color: white;
    padding: 18px 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}
#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9fbfd;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}
.message.bot {
    background: #fff;
    border: 1px solid #e1e4e8;
    align-self: flex-start;
}
.message.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
}
#chat-input-area {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eaeaea;
    gap: 10px;
}
#chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    outline: none;
}
.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}
.recording {
    color: #ff4757 !important;
    animation: chat-pulse 1.2s infinite;
}
@keyframes chat-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* AdSense Placeholder style */
.ad-slot {
    background: #fdfdfd;
    border: 1px dashed #ccc;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    color: #999;
}
