/* ========== Reset & Variables ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-app: #f3f4f6;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --bg-gray-800: #1f2937;
    --bg-gray-900: #111827;

    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --primary-bg: #eef2ff;

    --success: #059669;
    --success-light: #d1fae5;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;

    --error: #dc2626;
    --error-light: #fee2e2;
    --error-bg: #fef2f2;
    --error-border: #fecaca;

    --warning: #d97706;
    --warning-light: #fef3c7;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-inverse: #ffffff;

    --border: #e5e7eb;
    --border-light: #f3f4f6;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 10px -2px rgba(0, 0, 0, 0.1), 0 3px 6px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Radius */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== App Layout ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========== Navbar ========== */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.brand-version {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-gray-100);
    padding: 2px 8px;
    border-radius: 999px;
}

.navbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.status-local {
    background: var(--primary-bg);
    color: var(--primary);
}

.status-secure {
    background: var(--success-bg);
    color: var(--success);
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

/* ========== App Body ========== */
.app-body {
    display: flex;
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    gap: 24px;
}

/* ========== Sidebar ========== */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 16px;
}

.sidebar-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: default;
    transition: background var(--transition);
}

.sidebar-step.active {
    background: var(--primary-bg);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-gray-100);
    color: var(--text-muted);
}

.sidebar-step.active .step-number {
    background: var(--primary);
    color: var(--text-inverse);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.sidebar-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.format-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.format-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.format-item:hover {
    background: var(--bg-gray-50);
}

.format-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.format-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========== Main Panel ========== */
.main-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== Card ========== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 1.25rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-bg);
    color: var(--primary);
    letter-spacing: 0.02em;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-gray-50);
}

/* Success Card */
.card-success {
    border-color: var(--success-border);
}

.card-success .card-header {
    background: var(--success-bg);
    border-bottom-color: var(--success-border);
}

.success-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--success);
    color: var(--text-inverse);
    letter-spacing: 0.02em;
}

/* Error Card */
.card-error {
    border-color: var(--error-border);
}

.card-error .card-header {
    background: var(--error-bg);
    border-bottom-color: var(--error-border);
}

.error-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--error);
    color: var(--text-inverse);
    letter-spacing: 0.02em;
}

/* ========== Conversion Grid ========== */
.conversion-grid {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.conversion-panel {
    flex: 1;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.panel-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.06em;
}

.panel-badge-source {
    background: #dbeafe;
    color: #1d4ed8;
}

.panel-badge-target {
    background: #fce7f3;
    color: #be185d;
}

.panel-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== Form Fields ========== */
.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    margin-top: 16px;
}

.field-label:first-child {
    margin-top: 0;
}

.field-select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
    transition: all var(--transition);
}

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

.field-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ========== File Upload ========== */
.file-upload {
    margin-top: 8px;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-gray-50);
    transition: all var(--transition-slow);
    cursor: pointer;
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}

.upload-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

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

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

.upload-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-white);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition);
}

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

/* ========== File List ========== */
.file-list {
    animation: fadeIn 200ms ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 4px;
}

.file-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.clear-files-btn {
    padding: 3px 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.clear-files-btn:hover {
    background: var(--error-light);
    color: var(--error);
    border-color: var(--error-border);
}

.file-items {
    list-style: none;
    max-height: 140px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-items li {
    padding: 6px 10px;
    background: var(--bg-gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-items li::before {
    content: '📄';
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ========== Format Hint ========== */
.format-hint {
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--primary);
    display: none;
    align-items: center;
    gap: 6px;
}

.format-hint.show {
    display: flex;
}

/* ========== Conversion Divider ========== */
.conversion-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.divider-line {
    flex: 1;
    width: 1px;
    background: var(--border);
}

.divider-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

/* ========== Output Preview ========== */
.output-preview {
    margin-top: 8px;
    padding: 12px;
    background: var(--bg-gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.preview-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-value.mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    background: var(--bg-white);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* ========== Convert Button ========== */
.convert-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.convert-btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.convert-btn:active {
    transform: scale(0.99);
}

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

.btn-icon {
    font-size: 1.1rem;
}

/* ========== Spinner ========== */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ========== Result Details ========== */
.result-details {
    padding: 8px 0;
}

.result-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.result-details .result-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

.result-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========== Download Button ========== */
.download-btn {
    padding: 12px 24px;
    background: var(--success);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover {
    background: #047857;
    box-shadow: var(--shadow-md);
}

/* ========== Error Details ========== */
.error-details {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== Footer ========== */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-white);
    margin-top: auto;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-sep {
    color: var(--border);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 500;
}

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

.footer-link svg {
    transition: transform var(--transition);
}

.footer-link:hover svg {
    transform: translateY(-1px);
}

/* ========== About Page Styles ========== */
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

.about-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.about-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border);
}

.about-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.about-section {
    margin-bottom: 40px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.about-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.lead-text {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
}

.lead-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.lead-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-bottom: 1px solid var(--border-light);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.highlight-box {
    background: var(--primary-bg);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.format-card {
    background: var(--bg-gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition);
}

.format-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.format-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.format-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.github-box {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg-gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--text-primary);
    color: var(--text-inverse);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
}

.github-link:hover {
    background: var(--bg-gray-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.demo-link {
    display: block;
    padding: 16px 20px;
    background: var(--bg-gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.demo-link:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
    transform: translateX(4px);
}

.cta-section {
    text-align: center;
    padding: 40px 0;
    margin-top: 48px;
    border-top: 2px solid var(--border);
}

.cta-section h2 {
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--text-inverse);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 600;
    transition: all var(--transition);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button span:last-child {
    font-size: 1.3rem;
    transition: transform var(--transition);
}

.cta-button:hover span:last-child {
    transform: translateX(4px);
}

/* ========== SEO Content Section ========== */
.seo-content {
    display: none;
}

/* ========== Scrollbar ========== */
.file-items::-webkit-scrollbar {
    width: 4px;
}

.file-items::-webkit-scrollbar-track {
    background: transparent;
}

.file-items::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.file-items::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .app-body {
        flex-direction: column;
        padding: 16px;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        gap: 16px;
    }

    .sidebar-section {
        flex: 1;
    }

    .sidebar-steps {
        flex-direction: row;
        gap: 8px;
    }

    .format-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .format-item {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .navbar-inner {
        padding: 0 16px;
    }

    .status-badge {
        display: none;
    }

    .sidebar {
        flex-direction: column;
    }

    .sidebar-steps {
        flex-direction: column;
    }

    .format-list {
        flex-direction: column;
    }

    .conversion-grid {
        flex-direction: column;
        gap: 16px;
    }

    .conversion-divider {
        flex-direction: row;
        transform: rotate(90deg);
    }

    .divider-line {
        width: 60px;
        height: 1px;
    }

    .card-body {
        padding: 16px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .app-body {
        padding: 12px;
    }

    .card-header {
        padding: 16px;
    }

    .card-footer {
        padding: 12px 16px;
    }

    .brand-version {
        display: none;
    }

    .upload-area {
        padding: 16px 12px;
    }
}
