:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --input-bg: #0f172a;
    --bg-secondary: rgba(15, 23, 42, 0.3);
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --success-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
    padding-top: 6rem;
    /* Space for fixed nav */
}

.container {
    width: 100%;
    max-width: 1200px;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 1rem;
    background-color: var(--card-bg);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-btn:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.main-layout {
    display: block;
    width: 100%;
}

/* Settings in Top Nav */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-flags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-right: 1rem;
    border-right: 1px solid var(--border-color);
}

.lang-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.lang-btn:hover {
    transform: scale(1.2);
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.theme-options-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-right: 1rem;
    border-right: 1px solid var(--border-color);
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.theme-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    text-decoration: underline;
}

.text-btn:hover {
    color: var(--text-color);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Input Areas */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--bg-secondary);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.small {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Options */
.options-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.options-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.profiles {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profiles span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.profile-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-color);
}

.profile-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.options-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.options-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 0.5rem;
}

.advanced-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.advanced-option-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.small-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.text-input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.5rem;
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    outline: none;
}

.text-input:focus {
    border-color: var(--primary-color);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.5rem;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-wrapper:hover input~.checkmark {
    border-color: var(--primary-color);
}

.checkbox-wrapper input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input:checked~.checkmark:after {
    display: block;
}

/* Action Buttons */
.action-section {
    margin-top: 2rem;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Output Section */
.output-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.hidden {
    display: none;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.output-actions {
    display: flex;
    gap: 0.5rem;
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#file-info {
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    color: var(--primary-color);
    white-space: pre-wrap;
    text-align: left;
    font-size: 0.85rem;
}

.code-output,
#code-output {
    width: 100%;
    min-height: 200px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
    background-color: var(--card-bg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.guide-section {
    margin-bottom: 2rem;
}

.guide-section h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.guide-item {
    margin-bottom: 1.5rem;
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.guide-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.guide-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Restored Missing Styles */
main {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

/* Tool Sections */
.tool-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tool-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.section-header p {
    color: var(--text-muted);
}

/* ========== Nav Divider ========== */
.nav-divider {
    color: var(--border-color);
    font-size: 1.2rem;
    user-select: none;
    display: flex;
    align-items: center;
}

/* ========== Scrollable Nav ========== */
.nav-links {
    display: flex;
    gap: 0.5rem;
    background-color: var(--card-bg);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    flex-shrink: 1;
    min-width: 0;
}

.nav-links::-webkit-scrollbar {
    height: 4px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.85rem;
}

/* ========== Tool Split Layout ========== */
.tool-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.tool-panel h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== Validation Messages ========== */
.validation-msg {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

.validation-msg.valid {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.validation-msg.invalid {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ========== Color Tool ========== */
.color-tool-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.color-preview-box {
    width: 200px;
    height: 200px;
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: background 0.2s;
}

.color-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.color-input-group .text-input {
    font-family: 'Fira Code', monospace;
}

/* ========== Regex Tester ========== */
.regex-results {
    margin-top: 1rem;
}

.regex-highlighted-text {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

mark.regex-highlight {
    background: rgba(59, 130, 246, 0.3);
    color: var(--primary-color);
    border-radius: 2px;
    padding: 1px 2px;
    border-bottom: 2px solid var(--primary-color);
}

.match-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.match-info code {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
}

/* ========== Markdown Preview ========== */
.markdown-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    overflow-y: auto;
    color: var(--text-color);
    line-height: 1.7;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.markdown-preview pre {
    background: var(--input-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.markdown-preview code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    background: var(--input-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

.markdown-preview pre code {
    background: none;
    padding: 0;
}

.markdown-preview blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
}

.markdown-preview table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-preview th,
.markdown-preview td {
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.markdown-preview th {
    background: var(--card-bg);
    font-weight: 600;
}

/* ========== Size Comparison ========== */
.size-comparison {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.size-item {
    text-align: center;
}

.size-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.size-value {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.size-value.savings {
    color: #10b981;
}

.size-value.increase {
    color: #ef4444;
}

/* ========== History Panel ========== */
.history-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.2s;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.history-panel {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    width: 350px;
    max-height: 500px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.history-header h3 {
    font-size: 1rem;
    margin: 0;
}

.history-list {
    overflow-y: auto;
    max-height: 380px;
    padding: 0.5rem;
}

.history-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.history-item:hover {
    background: var(--bg-secondary);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.history-tool {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
}

.history-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.history-snippet {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== Responsive Design ========== */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .top-nav {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0.25rem;
    }

    .nav-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    body {
        padding: 1rem;
        padding-top: 8rem;
    }

    .options-columns {
        grid-template-columns: 1fr;
    }

    .advanced-options-grid {
        grid-template-columns: 1fr;
    }

    .profiles {
        flex-wrap: wrap;
    }

    .tool-split-layout {
        grid-template-columns: 1fr;
    }

    .color-tool-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .history-panel {
        width: 300px;
    }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
    body {
        padding: 0.5rem;
        padding-top: 9rem;
    }

    .top-nav {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.1rem;
        padding: 0.25rem;
        overflow-x: auto;
    }

    .nav-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .theme-options-nav,
    .language-flags {
        padding-right: 0.5rem;
    }

    main {
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .file-upload-area {
        padding: 2rem 1rem;
    }

    .options-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profiles {
        width: 100%;
        flex-wrap: wrap;
    }

    .custom-presets {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .custom-presets select {
        flex: 1;
    }

    .primary-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .action-section {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .secondary-btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 0.5rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .code-output,
    #code-output {
        min-height: 150px;
        font-size: 0.8rem;
    }
}