/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #225175;
    --primary-dark: #2d597c;
    --secondary-color: #7895ab;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --text-dark: #111827;
    --text-gray: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-img img {
    width: 200px;
}
.logo-text {
    margin-left: 20px;
}
.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.version {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 1.5rem;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Main Layout */
.main-wrapper {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.sidebar-nav {
    background: var(--bg-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.sidebar-nav h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.625rem 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    font-weight: 600;
}

/* Main Content */
.main-content {
    background: var(--bg-white);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.doc-section {
    margin-bottom: 3rem;
    scroll-margin-top: 6rem;
}

.doc-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.doc-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.doc-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.doc-section p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.doc-section ul,
.doc-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.doc-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

code {
    background: var(--bg-light);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-grid div {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.75rem 0 0.5rem;
}

.benefit-card p {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin: 0;
}

/* Lists */
.requirement-list,
.browser-list,
.feature-list {
    list-style: none;
    margin-left: 0;
}

.requirement-list li,
.feature-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.browser-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.browser-list li {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

/* Step Cards */
.step-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 0;
    color: var(--text-dark);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.alert-success {
    background: #D1FAE5;
    border-color: var(--secondary-color);
    color: #065F46;
}

.alert-info {
    background: #DBEAFE;
    border-color: var(--info-color);
    color: #1E40AF;
}

.alert-warning {
    background: #FEF3C7;
    border-color: var(--warning-color);
    color: #92400E;
}

.alert strong {
    font-weight: 600;
}

/* API Cards */
.api-card {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
}

.api-card h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Config Card */
.config-card {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.config-card h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Tables */
.settings-table,
.tone-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.settings-table thead,
.tone-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
}

.settings-table th,
.tone-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.settings-table td,
.tone-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-table tbody tr:hover,
.tone-table tbody tr:hover {
    background: var(--bg-light);
}

/* Workflow Card */
.workflow-card {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.workflow-step {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-white);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.workflow-step:last-child {
    margin-bottom: 0;
}

.workflow-step strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.tip-card {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tip-card h4 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
}

.tip-card p {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

/* Content Type Cards */
.content-type-card {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.content-type-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Troubleshooting Cards */
.troubleshooting-card {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--danger-color);
}

.troubleshooting-card h3 {
    color: var(--danger-color);
    margin-top: 0;
}

/* FAQ Items */
.faq-item {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin: 0;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.support-card {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.support-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-card h4 {
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.support-card p {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin: 0;
}

.contact-info {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Changelog */
.changelog-item {
    margin-bottom: 2rem;
}

.changelog-item h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.changelog-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e5eaef 0%, #f9fff9 100%);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.changelog-item ul {
    margin-left: 1.5rem;
}
.changelog-item ul li{
    list-style: none;
}

/* Roadmap Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.roadmap-card {
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    text-align: center;
}

.roadmap-card h4 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
}

.roadmap-card p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Code Block */
.code-block {
    background: #1F2937;
    color: #F9FAFB;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
}

.code-block p,
.code-block ul {
    color: #F9FAFB;
}

.code-block strong {
    color: #60A5FA;
}

.code-block code {
    background: #374151;
    color: #FCD34D;
}

/* Footer */
.doc-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .sidebar.mobile-hidden {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem;
    }

    .doc-section h2 {
        font-size: 1.5rem;
    }

    .doc-section h3 {
        font-size: 1.25rem;
    }

    .benefits-grid,
    .tips-grid,
    .support-grid,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .version {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .main-content {
        padding: 1rem;
    }

    .step-card {
        flex-direction: column;
    }

    .settings-table,
    .tone-table {
        font-size: 0.875rem;
    }

    .settings-table th,
    .tone-table th,
    .settings-table td,
    .tone-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .header,
    .sidebar,
    .mobile-menu-btn {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 0;
        box-shadow: none;
    }

    body {
        background: white;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-section {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}