body {
    font-family: monospace;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
}

.site-header {
    border-bottom: 2px solid #333;
    padding: 10px;
    margin-bottom: 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    color: #e0e0e0;
}

.tagline {
    margin: 0;
    color: #888;
    font-size: 14px;
}

.main-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 4px;
    border: 2px solid #333;
    margin-bottom: 20px;
}

.settings-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    text-align: left;
    padding-bottom: 15px;
    margin-bottom: -1px;
    position: relative;
    transition: opacity 0.2s ease;
}

.settings-header:hover {
    opacity: 0.8;
}

.settings-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    right: -20px;
    height: 1px;
    background: #333;
}

.settings-header-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #e0e0e0;
    font-family: monospace;
}

.settings-header-description {
    font-size: 14px;
    color: #888;
    font-family: monospace;
}

.toggle-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #252525;
    transition: background-color 0.2s ease;
}

.settings-header:hover .toggle-icon-container {
    background: #333;
}

.toggle-icon {
    color: #888;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    height: 20px;
}

.settings-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 20px;
}

.settings-content.collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    margin-top: 0;
    pointer-events: none;
}

.toggle-icon.collapsed {
    transform: rotate(-180deg);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.tab-container {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.tab {
    padding: 8px 12px;
    cursor: pointer;
    background: #333;
    color: #e0e0e0;
    border-radius: 4px;
}

.tab:hover {
    background: #444;
}

.tab.active {
    background: #444;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.warning-banner {
    background: #2d2d13;
    border: 1px solid #666633;
    color: #e0e0e0;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: monospace;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-icon {
    color: #cccc00;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-text {
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.warning-text strong {
    color: #cccc00;
}

.file-zone {
    border: 2px dashed #444;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    background: #1e1e1e;
    cursor: pointer;
}

.file-zone:hover {
    background: #252525;
    border-color: #555;
}

.file-zone.drag-over {
    background: #252525;
    border-color: #666;
}

.text-input {
    width: 100%;
    height: 300px;
    padding: 10px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: monospace;
    resize: vertical;
    margin: 10px 0;
    box-sizing: border-box;
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-default {
    padding: 8px 12px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    font-family: monospace;
}

.btn-default:hover {
    background: #444;
}

.settings-group {
    background: #252525;
    padding: 15px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.settings-group h3 {
    margin: 0 0 15px 0;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
}

.checkbox-grid {
    display: grid;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.style-grid,
.text-fields {
    display: grid;
    gap: 15px;
    width: 100%;
}

.setting-row {
    display: grid;
    gap: 5px;
    width: 100%;
}

.setting-row label {
    font-size: 14px;
    color: #888;
}

.setting-row input[type="text"],
.setting-row input[type="color"],
.setting-row select {
    width: 100%;
    padding: 8px;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: monospace;
    box-sizing: border-box;
    min-width: 0;
    height: 36px;
}

.setting-row input[type="color"] {
    padding: 2px;
}

.format-select {
    padding: 8px;
    background: #333;
    border: 1px solid #444;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
}

.apply-settings {
    width: 100%;
    padding: 10px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    font-family: monospace;
    box-sizing: border-box;
}

.apply-settings:hover {
    background: #0b5ed7;
}

.status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.status.success {
    background: #1b5e20;
    display: block;
}

.status.error {
    background: #c62828;
    display: block;
}

.github-button {
    padding: 8px 12px;
    background: #333;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #444;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-family: monospace;
}

.github-button:hover {
    background: #444;
    border-color: #555;
    color: #e0e0e0;
}

rapi-pdf {
    --primary-color: #333;
    --border-radius: 4px;
    --input-bg: #1e1e1e;
    --fg: #e0e0e0;
    --primary-text: #e0e0e0;
    --font-size: 14px;
    width: 100% !important;
}

.footer {
    text-align: center;
    padding: 20px;
    font-family: monospace;
    color: #888;
    margin-top: 40px;
}

.footer a {
    color: #e0e0e0;
    text-decoration: none;
    border-bottom: 1px solid #444;
    transition: border-color 0.2s ease;
}

.footer a:hover {
    border-color: #666;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

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

    .settings-header-content {
        gap: 2px;
    }

    .settings-title {
        font-size: 16px;
    }

    .settings-header-description {
        font-size: 12px;
    }

    .toggle-icon-container {
        width: 28px;
        height: 28px;
    }

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

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        align-items: center;
    }

    .warning-banner {
        padding: 12px;
        gap: 10px;
    }

    .warning-icon {
        width: 20px;
        height: 20px;
    }

    .warning-text {
        font-size: 13px;
    }

    .setting-row input[type="text"],
    .setting-row input[type="color"],
    .setting-row select {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .warning-banner {
        padding: 10px;
        gap: 8px;
    }
}