:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --success: #22c55e;
    --success-hover: #16a34a;
    --error: #ef4444;
    --error-hover: #dc2626;
    --warning: #f59e0b;
    --secondary: #6366f1;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255,255,255,0.1);
    --sidebar-width: 280px;
    --transition: all 0.2s ease;
}

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

html, body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Background Animation ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        var(--bg-dark);
    pointer-events: none;
    z-index: -1;
}

/* ===== App Container ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-section img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 12px;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    letter-spacing: 0.1em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--bg-hover);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.nav-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    flex-shrink: 0;
}

.nav-item.active .nav-item-icon {
    background: var(--primary);
    color: white;
}

.nav-item-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-item-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

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

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Mobile Menu ===== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-hover);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

.tool-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tool-container.active {
    display: block;
}

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

.tool-header {
    margin-bottom: 1.5rem;
}

.tool-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-header h2 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== Action Bar ===== */
.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.action-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: white;
    background: var(--bg-hover);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.primary { background: var(--primary); }
.action-btn.primary:hover { background: var(--primary-hover); }
.action-btn.success { background: var(--success); }
.action-btn.success:hover { background: var(--success-hover); }
.action-btn.danger { background: var(--error); }
.action-btn.danger:hover { background: var(--error-hover); }
.action-btn.secondary { background: var(--secondary); }

/* ===== Editor Panels ===== */
.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.editor-panel {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.editor-panel-header {
    padding: 14px 18px;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.editor-panel-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.editor-panel-header.error-header {
    background: rgba(239, 68, 68, 0.15);
}

.editor-textarea {
    width: 100%;
    min-height: 400px;
    background: var(--bg-dark);
    color: #4ade80;
    border: none;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.editor-textarea::placeholder {
    color: var(--text-secondary);
}

/* ===== Badge ===== */
.badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.valid {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.badge.invalid {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* ===== Type Badges ===== */
.type-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    margin-left: 6px;
}

.type-string { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.type-number { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.type-boolean { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.type-object { background: rgba(14, 165, 233, 0.2); color: #38bdf8; }
.type-array { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.type-null { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

/* ===== Tables ===== */
.table-wrapper {
    padding: 16px;
    overflow-x: auto;
}

.type-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.type-table th {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    text-align: left;
    font-weight: 600;
}

.type-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.type-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* ===== Tree View ===== */
.tree-view {
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
}

.tree-children {
    margin-left: 20px;
    border-left: 1px dashed rgba(255,255,255,0.15);
    padding-left: 12px;
}

/* ===== Mermaid Box ===== */
.mermaid-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
}

.mermaid-box svg {
    max-width: none !important;
    width: 100%;
    height: auto;
}

/* ===== XML Preview ===== */
.xml-preview {
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    min-height: 400px;
    max-height: 600px;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.xml-tag { color: #f472b6; }
.xml-attr-name { color: #38bdf8; }
.xml-attr-value { color: #4ade80; }
.xml-comment { color: #6b7280; font-style: italic; }
.xml-text { color: var(--text-primary); }
.xml-declaration { color: #a78bfa; }

.error-content {
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #f87171;
    line-height: 1.6;
}

/* ===== Status Message ===== */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.status-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.status-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ===== CSV Controls ===== */
.csv-controls {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.csv-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.csv-controls-row + .csv-controls-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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

.control-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.control-group select,
.control-group input[type="text"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    min-width: 150px;
    outline: none;
    transition: var(--transition);
}

.control-group select:focus,
.control-group input[type="text"]:focus {
    border-color: var(--primary);
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-wrapper label {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.search-group {
    flex: 1;
    min-width: 250px;
}

.search-input-wrapper {
    display: flex;
    gap: 8px;
}

.search-input-wrapper input {
    flex: 1;
}

/* ===== CSV Action Bar ===== */
.csv-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.csv-stats strong {
    color: var(--primary);
}

.csv-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.export-dropdown {
    position: relative;
}

.export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 50;
    min-width: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.export-dropdown:hover .export-menu {
    display: block;
}

.export-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.export-menu button:hover {
    background: var(--bg-hover);
}

/* ===== CSV Dropzone ===== */
.csv-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
    background: var(--bg-card);
}

.csv-dropzone.drag-over {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

.dropzone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dropzone-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.dropzone-hint {
    font-size: 0.85rem !important;
    margin-top: 0.5rem;
}

/* ===== CSV Table ===== */
.csv-table-container {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.csv-table-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    border-radius: 0;
    margin: 0;
}

.table-scroll-wrapper {
    overflow: auto;
    max-height: calc(100vh - 400px);
}

.csv-table-container.fullscreen .table-scroll-wrapper {
    max-height: calc(100vh - 60px);
}

.csv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: auto;
}

.csv-table th {
    background: rgba(0,0,0,0.3);
    padding: 12px 8px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.csv-table th:hover {
    background: rgba(255,255,255,0.1);
}

.csv-table th.filtered {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.csv-table th.sorted-asc::after {
    content: ' ▲';
    font-size: 0.7rem;
    color: var(--primary);
}

.csv-table th.sorted-desc::after {
    content: ' ▼';
    font-size: 0.7rem;
    color: var(--primary);
}

.th-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.th-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.th-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: var(--transition);
}

.th-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.csv-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.csv-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.csv-table td.editable {
    cursor: pointer;
}

.csv-table td.editing {
    padding: 4px;
}

.csv-table td.editing input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 0.85rem;
    outline: none;
}

.csv-table .highlight {
    background: rgba(245, 158, 11, 0.3);
    padding: 1px 2px;
    border-radius: 2px;
}

.row-delete-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.row-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* ===== Floating Scrollbar ===== */
.floating-scrollbar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    display: none;
}

.floating-scrollbar.visible {
    display: block;
}

.scrollbar-thumb {
    height: 100%;
    background: var(--bg-hover);
    border-radius: 6px;
    cursor: pointer;
    min-width: 50px;
}

.scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== Resize Handle ===== */
.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    cursor: col-resize;
    background: transparent;
    transition: var(--transition);
}

.resize-handle:hover,
.resize-handle.resizing {
    background: var(--primary);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalIn 0.2s ease;
}

.modal-content.modal-large {
    max-width: 700px;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.filter-column-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-options label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.filter-options select,
.filter-options input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.filter-options select:focus,
.filter-options input:focus {
    border-color: var(--primary);
}

/* ===== Stats Modal ===== */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stats-header span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.stats-header select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-dark);
    border-radius: 6px;
}

.stats-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stats-item:nth-child(1) .stats-rank { background: #fbbf24; color: #000; }
.stats-item:nth-child(2) .stats-rank { background: #94a3b8; color: #000; }
.stats-item:nth-child(3) .stats-rank { background: #cd7f32; color: #fff; }

.stats-value {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-bar-wrapper {
    width: 120px;
    height: 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
}

.stats-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stats-count {
    min-width: 80px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== Brand Badge ===== */
.brand-badge {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.brand-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.brand-badge img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-badge-text strong {
    font-weight: 700;
    font-size: 0.9rem;
}

.brand-badge-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.brand-badge .linkedin-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 0.8;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .editor-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
    }

    .tool-header h2 {
        font-size: 1.4rem;
    }

    .csv-controls-row {
        flex-direction: column;
    }

    .control-group {
        width: 100%;
    }

    .control-group select,
    .control-group input[type="text"] {
        width: 100%;
    }

    .csv-action-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .csv-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .brand-badge {
        right: 12px;
        bottom: 12px;
        padding: 8px 12px;
    }

    .brand-badge-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .action-bar {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}
