/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --error-color: #ef4444;
    --background: #fafbfc;
    --surface: #ffffff;
    --border: #e5e7eb;
    --border-light: #f1f3f5;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.011em;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    min-height: calc(100vh - 4rem);
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: var(--primary-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: white;
    stroke-width: 2;
}

.feature-text h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.015em;
}

.feature-text p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.cta-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
    font-weight: 400;
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* LLM Flow Illustration */
.llm-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-radius: 14px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    gap: 1rem;
}

.markdown-files {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.md-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-icon {
    width: 16px;
    height: 16px;
    color: #3b82f6;
}

.flow-arrow {
    flex-shrink: 0;
}

.flow-arrow svg {
    width: 32px;
    height: 32px;
    color: #3b82f6;
}

.llm-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    min-width: 120px;
}

.llm-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.llm-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.llm-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.llm-sublabel {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Documentation Preview */
.doc-preview {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    transition: box-shadow 0.3s ease;
}

.doc-preview:hover {
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.12), 0 10px 12px -5px rgba(0, 0, 0, 0.05);
}

.doc-preview-content {
    padding: 2rem;
    background: #ffffff;
}

.doc-text {
    margin-bottom: 1.25rem;
}

.doc-h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.doc-h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    margin-top: 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: -0.015em;
}

.doc-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.doc-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.doc-list li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 0.5rem;
    position: relative;
}

.doc-list li::before {
    content: '•';
    position: absolute;
    left: -0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Diagram Placeholder */
.diagram-placeholder {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    overflow: hidden;
}

.diagram-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Header (Legacy - keeping for backwards compatibility) */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Info Banner (Privacy) */
.info-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(147, 51, 234, 0.04) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    color: var(--primary-color);
    margin-top: 0.125rem;
}

.info-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.info-content {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Warning Banner (CORS) */
.warning-banner {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.warning-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.warning-link:hover {
    color: var(--primary-hover);
}

.cors-help {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f59e0b;
}

.cors-help p {
    margin-bottom: 0.5rem;
}

.cors-help pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.cors-help code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cors-help a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Section */
.section {
    background: var(--surface);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin-bottom: 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.select-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.select-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Help Tooltip */
.help-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.help-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.help-tooltip:hover .help-icon {
    color: var(--primary-hover);
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    background: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    min-width: 320px;
    max-width: 400px;
    font-size: 0.875rem;
    line-height: 1.6;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.help-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Tooltip arrow */
.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--primary-color);
}

.tooltip-content strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.tooltip-content ol {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.tooltip-content li {
    margin-bottom: 0.5rem;
}

.tooltip-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.tooltip-content a:hover {
    color: var(--primary-hover);
}

.tooltip-content code {
    background: #e0e7ff;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    color: #3730a3;
}

.tooltip-content p {
    margin: 0.75rem 0 0 0;
}

.tooltip-content em {
    color: var(--text-secondary);
}

/* Password Input */
.password-input {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.password-input input {
    flex: 1;
}

.toggle-password {
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background: var(--border);
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    letter-spacing: -0.01em;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--background);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn.loading .btn-text {
    visibility: hidden;
}

.btn.loading .spinner {
    display: block !important;
    position: absolute;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.project-card.selected {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.project-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.project-info {
    flex: 1;
}

.project-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.project-meta span {
    margin-right: 1rem;
}

/* Project Actions */
.project-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.count-badge {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Progress */
.progress-container {
    margin-top: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 1rem;
}

.result-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: var(--shadow-md);
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.result-status {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

/* Error Message */
.error-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    color: var(--error-color);
    font-size: 0.875rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-state .spinner {
    margin: 0 auto 1rem;
    border-color: var(--border);
    border-top-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-visual {
        order: -1;
    }

    .doc-preview {
        max-width: 100%;
    }

    .llm-flow {
        padding: 1rem;
        gap: 0.75rem;
    }

    .md-file {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
    }

    .file-icon {
        width: 14px;
        height: 14px;
    }

    .flow-arrow svg {
        width: 24px;
        height: 24px;
    }

    .llm-node {
        padding: 1rem;
        min-width: 100px;
    }

    .llm-icon {
        width: 32px;
        height: 32px;
    }

    .llm-icon svg {
        width: 20px;
        height: 20px;
    }

    .llm-label {
        font-size: 0.75rem;
    }

    .llm-sublabel {
        font-size: 0.6875rem;
    }

    .doc-preview-content {
        padding: 1.25rem;
    }

    .doc-h1 {
        font-size: 1.25rem;
    }

    .doc-h2 {
        font-size: 1rem;
    }

    .doc-description {
        font-size: 0.9375rem;
    }

    .diagram-placeholder {
        padding: 0.875rem;
    }

    .logo {
        width: 100px;
        margin-bottom: 1rem;
    }

    .tooltip-content {
        min-width: 280px;
        max-width: calc(100vw - 2rem);
        left: auto;
        right: 0;
        transform: none;
    }

    .tooltip-content::after {
        left: auto;
        right: 1rem;
        transform: none;
    }

    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 1.5rem;
    }

    .section h2 {
        font-size: 1.25rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-actions {
        width: 100%;
    }

    .result-actions .btn {
        flex: 1;
    }

    .password-input {
        flex-direction: column;
    }

    .password-input input,
    .toggle-password {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-features {
        gap: 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-text h3 {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .llm-flow {
        flex-direction: column;
        padding: 0.875rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .llm-node {
        width: 100%;
    }

    .md-file span {
        font-size: 0.625rem;
    }

    .doc-preview-content {
        padding: 1rem;
    }

    .doc-h1 {
        font-size: 1.125rem;
    }

    .doc-h2 {
        font-size: 0.9375rem;
    }

    .doc-description {
        font-size: 0.875rem;
    }

    .doc-list li {
        font-size: 0.8125rem;
    }

    .diagram-placeholder {
        padding: 0.75rem;
        margin: 0.875rem 0;
    }

    .container {
        padding: 1rem 0.5rem;
    }

    .section {
        padding: 1rem;
    }

    .project-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .project-actions .btn {
        width: 100%;
    }
}
