* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-body: #f8fafc;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Font families */
    --font-ui: Menlo, Consolas, "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", "Monaco", "Menlo", "Consolas", "Courier New", monospace;

    /* Border radius */
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 20px;
}

body {
    /* font-family: var(--font-ui); */
    background: var(--bg-body);
    color: var(--text-primary);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    box-shadow: var(--shadow);
    width: 1280px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo:active {
    opacity: 0.6;
}

.logo-tabs-separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    flex-shrink: 0;
}

.quota-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 4px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-2xl);
    cursor: help;
}

.quota-bar {
    width: 80px;
    height: 6px;
    background: var(--bg-body);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.quota-used {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
    transition: width 0.3s ease;
    width: 0%;
    border-radius: var(--radius-xs);
}

#quota-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 35px;
    text-align: right;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    width: 1280px;
    margin: 0 auto;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tab-btn {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, color 0.2s ease;
    font-family: var(--font-ui) !important;
}

.tab-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.tab-btn {
    -webkit-tap-highlight-color: transparent;
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    padding: 15px 0;
    overflow: hidden;
    background: var(--bg-body);
}

.tab-content.active {
    display: flex;
    gap: 20px;
}

#text-tab {
    flex-direction: row;
    align-items: flex-start;
}

#text-tab > .editor-wrapper {
    width: 960px;
    max-width: 960px;
    flex: none;
    height: 100%;
}

#text-tab > .right-panel {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#file-tab {
    flex-direction: row;
    align-items: flex-start;
}

#file-tab > .upload-section {
    width: 960px;
    max-width: 960px;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    height: 100%;
}

#file-tab > .right-panel {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Editor Wrapper */
.editor-wrapper {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    height: 85vh;
}

/* Editor content area - contains Ace Editor */
.editor-content {
    flex: 1;
    overflow: hidden;
    background: white;
    min-height: 0;
    display: flex;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px 6px 10px;
    background: var(--bg-input);
    /* border-bottom: 1px solid var(--border-color); */
    align-items: center;
}

.toolbar-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.toolbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.url-prefix {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    white-space: nowrap;
}

.custom-id-input {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    width: 80px;
    min-width: 80px;
    transition: all 0.2s;
    font-family: var(--font-ui);
}

.custom-id-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-id-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.language-select {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    box-sizing: border-box;
    /* height: 36px; */
}

.language-select:hover {
    border-color: var(--primary-color);
}

.language-select:focus {
    outline: none !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.toolbar-btn:focus {
    outline: none !important;
}

.toolbar-btn {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Ace Editor Styles */
#code-editor {
    width: 100%;
    height: calc(85vh - 50px);
    font-size: 14px;
    line-height: 1.6;
}

/* Override Ace Editor default styles */
#code-editor .ace_editor {
    font-family: var(--font-ui) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    width: 100% !important;
    height: 100% !important;
}

#code-editor .ace_scroller {
    width: 100% !important;
    height: 100% !important;
}

#code-editor .ace_scrollbar {
    display: block !important;
}

/* Hide horizontal scrollbar when wrap is enabled */
#code-editor .ace_scrollbar.ace_scrollbar-h {
    display: none !important;
}

/* Hide mobile menu on Ace Editor */
#code-editor .ace_mobile-menu {
    display: none !important;
}

#code-editor .ace_gutter {
    background: #fafbfc !important;
    color: var(--text-secondary) !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
}

#code-editor .ace_gutter-active-line {
    background: transparent !important;
}

#code-editor .ace_active-line {
    background: transparent !important;
}

#code-editor .ace_scroller {
    background: white !important;
}

#code-editor .ace_content {
    background: white !important;
}

/* Hide code folding widgets */
#code-editor .ace_fold-widget {
    display: none !important;
}

#code-editor .ace_folding-enabled {
    margin-left: 0 !important;
}

/* Selection */
#code-editor::selection {
    background: #b4d5fe;
}

/* Options Panel */
.options-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.file-options {
    width: 100%;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-group input[type="text"],
.option-group input[type="number"],
.option-group input[type="password"] {
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: var(--font-ui);
}

.option-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

.btn-primary {
    padding: 12px 20px;
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* File Toolbar */
.file-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background: var(--bg-input);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Upload Area */
.upload-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    cursor: pointer;
    transition: width 0.3s ease;
    height: 80vh;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.upload-area.has-files {
    flex-shrink: 0;
}

.file-remove {
    margin-top: 12px;
    padding: 6px 16px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.file-remove:hover {
    background: #dc2626;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: var(--bg-input);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Result Panel */
.result-panel {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px);
}

.result-panel.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.result-content {
    padding: 20px;
}

.share-label {
    display: flex;
    gap: 8px;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
}

.result-link {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: var(--bg-input);
    border-radius: var(--radius-lg);
}

.result-link input,
.result-link .link-text {
    flex: 1;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-right: none;
    color: var(--text-primary);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.85rem;
    word-break: break-all;
    line-height: 1.4;
    overflow-wrap: break-word;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.copy-btn {
    padding: 8px 10px;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    background: var(--primary-hover);
}

.result-password {
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.result-password strong {
    color: var(--success-color);
}

.result-curl {
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    word-break: break-all;
    border: 1px solid var(--border-color);
}

.qrcode-container {
    display: flex;
    justify-content: center;
    padding: 8px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-top: 10px;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.toast.success {
    border-color: var(--success-color);
}

.toast.error {
    border-color: var(--error-color);
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.hidden {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-input);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1280px) {
    .header,
    .main-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .header {
        gap: 12px;
        min-height: 56px;
    }

    .header-left {
        gap: 8px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-tabs-separator {
        height: 20px;
    }

    .tab-content {
        padding: 15px 0 !important;
    }

    .tabs {
        gap: 4px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    #text-tab > .editor-wrapper,
    #file-tab > .upload-section,
    #text-tab > .right-panel,
    #file-tab > .right-panel {
        width: 100%;
        max-width: 100%;
    }

    #text-tab,
    #file-tab {
        flex-direction: column;
    }

    /* Keep desktop height for editor */
    .editor-wrapper {
        height: 85vh;
    }

    .upload-section {
        height: auto !important;
    }

    .tab-content {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .right-panel {
        flex-shrink: 0;
    }

    body {
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 100vh;
    }

    .app-container {
        min-height: 100vh;
    }

    .main-content {
        overflow: visible;
    }

    .tab-content {
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .header {
        padding: 8px 12px;
        gap: 8px;
    }

    .header-left {
        gap: 6px;
        flex: 0;
        min-width: 0;
    }

    .logo {
        font-size: 1rem;
        font-weight: 700;
    }

    .logo-tabs-separator {
        height: 18px;
    }

    .tabs {
        gap: 3px;
        flex-shrink: 0;
    }

    .tab-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .main-content {
        padding: 0;
        width: 100%;
    }

    .tab-content {
        padding: 15px 12px !important;
    }

    .quota-indicator {
        padding: 3px 8px;
        gap: 6px;
    }

    .quota-bar {
        width: 50px;
        height: 5px;
    }

    #quota-text {
        font-size: 0.75rem;
        min-width: 30px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .tab-content {
        padding: 20px 8px;
        overflow: visible;
    }

    .tab-content.active {
        gap: 20px;
    }

    .url-prefix {
        display: none;
    }

    .custom-id-input,
    #file-custom-id {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }

    .file-toolbar {
        justify-content: center;
        padding: 4px 8px;
    }

    .upload-section {
        height: 298px;
    }

    .editor-wrapper {
        height: 298px;
        display: flex;
        flex-direction: column;
    }

    #code-editor {
        height: 256px;
    }

    .editor-toolbar {
        flex-wrap: nowrap;
        padding: 4px 16px;
        gap: 6px;
        min-height: auto;
    }

    .toolbar-left,
    .toolbar-center,
    .toolbar-right {
        min-height: auto;
    }

    .toolbar-left {
        flex: 1;
        min-width: 0;
    }

    .toolbar-right {
        display: flex;
        justify-content: flex-end;
        gap: 6px;
    }

    .editor-toolbar button,
    .editor-toolbar select,
    .editor-toolbar input:not([type="checkbox"]) {
        min-height: 32px !important;
        height: 32px;
        padding: 4px 8px;
    }

    .language-select {
        flex: 1;
        min-width: 80px;
        max-width: 120px;
    }

    .toolbar-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .custom-id-input {
        padding: 4px 8px !important;
        font-size: 0.8rem;
    }

    .url-prefix {
        font-size: 0.75rem;
    }

    .upload-area {
        height: 256px;
        padding: 20px;
    }

    .option-group input[type="text"],
    .option-group input[type="number"],
    .option-group input[type="password"] {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-height: 36px;
    }

    .upload-icon {
        font-size: 2.5rem;
    }

    .upload-text {
        font-size: 1rem;
    }

    .right-panel {
        flex-shrink: 0;
        flex-grow: 0;
    }

    .options-panel {
        padding: 12px;
        gap: 10px;
    }

    .option-group label {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .checkbox-label {
        font-size: 0.75rem;
        gap: 4px;
    }

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

    .option-group input[type="text"],
    .option-group input[type="number"],
    .option-group input[type="password"] {
        padding: 10px;
        font-size: 16px;
    }

    .btn-primary {
        padding: 12px 16px;
        font-size: 0.95rem;
        width: 100%;
    }

    .result-panel {
        width: 100%;
        right: auto;
        position: static;
        transform: none;
    }

    .result-content {
        padding: 15px;
    }

    #code-editor {
        font-size: 14px;
    }

    .toolbar-btn {
        min-height: 32px !important;
        height: 32px;
        padding: 4px 8px;
    }

    .language-select {
        min-height: 32px !important;
        height: 32px;
    }

    .editor-toolbar .custom-id-input {
        min-height: 32px !important;
        height: 32px;
    }

    #code-editor::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    #code-editor::-webkit-scrollbar-track {
        background: var(--bg-input);
    }

    #code-editor::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: var(--radius-xs);
    }

    #code-editor::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }
}

@media (max-width: 480px) {
    .header {
        padding: 6px 10px;
        gap: 6px;
    }

    .header-left {
        gap: 5px;
        flex: 0;
    }

    .logo {
        font-size: 0.95rem;
    }

    .logo-tabs-separator {
        height: 16px;
    }

    .tab-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .tab-content {
        padding: 12px 10px !important;
    }

    .quota-indicator {
        padding: 2px 6px;
        gap: 4px;
    }

    .quota-bar {
        width: 40px;
        height: 4px;
    }

    #quota-text {
        font-size: 0.7rem;
        min-width: 28px;
    }

    .tab-content {
        padding: 20px 8px;
        overflow: hidden;
    }

    .tab-content.active {
        gap: 20px;
    }

    .editor-toolbar {
        flex-wrap: nowrap;
        padding: 3px 12px;
        gap: 4px;
        min-height: auto;
    }

    .toolbar-left,
    .toolbar-center,
    .toolbar-right {
        min-height: auto;
    }

    .toolbar-left {
        flex: 1;
        min-width: 0;
    }

    .toolbar-right {
        display: flex;
        gap: 4px;
        flex-shrink: 0;
        justify-content: flex-end;
    }

    .editor-toolbar button,
    .editor-toolbar select,
    .editor-toolbar input:not([type="checkbox"]) {
        min-height: 30px !important;
        height: 30px;
        padding: 3px 6px;
    }

    .language-select {
        flex: 1;
        min-width: 60px;
        max-width: 100px;
        font-size: 0.75rem;
    }

    .custom-id-input,
    #file-custom-id {
        width: 90px;
        min-width: 90px;
        max-width: 90px;
        padding: 3px 6px !important;
        font-size: 0.75rem;
    }

    .file-toolbar {
        padding: 3px 6px;
        min-height: auto;
    }

    .file-toolbar .custom-id-input {
        min-height: 30px !important;
        height: 30px;
    }

    .upload-section {
        height: 298px;
    }

    .toolbar-btn {
        padding: 3px 6px;
        font-size: 0.75rem;
    }

    .url-prefix {
        font-size: 0.7rem;
    }

    .editor-wrapper {
        height: 298px;
        border-radius: var(--radius-lg);
        display: flex;
        flex-direction: column;
    }

    #code-editor {
        font-size: 13px;
        height: 256px;
    }

    .upload-area {
        height: 256px;
        border-radius: var(--radius-lg);
    }

    .option-group input[type="text"],
    .option-group input[type="number"],
    .option-group input[type="password"] {
        padding: 6px 8px;
        font-size: 0.8rem;
        min-height: 32px;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .options-panel {
        padding: 10px;
        gap: 8px;
        border-radius: var(--radius-lg);
    }

    .option-group label {
        margin-bottom: 2px;
    }

    .checkbox-label {
        font-size: 0.7rem;
        gap: 3px;
    }

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

    .option-group input[type="text"],
    .option-group input[type="number"],
    .option-group input[type="password"] {
        padding: 10px;
        font-family: var(--font-ui);
    }

    .btn-primary {
        padding: 12px 16px;
    }

    .result-password {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .qrcode-container {
        padding: 8px;
    }

    #code-editor::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    #code-editor::-webkit-scrollbar-track {
        background: var(--bg-input);
    }

    #code-editor::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: var(--radius-xs);
    }

    #code-editor::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }
}

@media (max-width: 360px) {
    .header {
        padding: 5px 8px;
        gap: 4px;
    }

    .header-left {
        gap: 4px;
        flex: 0;
    }

    .logo {
        font-size: 0.9rem;
    }

    .logo-tabs-separator {
        height: 14px;
    }

    .tab-btn {
        padding: 4px 7px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .tab-content {
        padding: 10px 8px !important;
    }

    .quota-indicator {
        padding: 2px 6px;
        gap: 4px;
    }

    .quota-bar {
        width: 35px;
        height: 4px;
    }

    #quota-text {
        font-size: 0.65rem;
        min-width: 26px;
    }
}
