.converter-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.controls button {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-toggle {
    background: var(--primary-color);
    color: white;
    flex-grow: 1;
}

.btn-toggle:hover {
    background: var(--primary-color);
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-copy, .btn-clear {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color) !important;
}

.btn-copy:hover, .btn-clear:hover {
    background: var(--background-color);
    transform: translateY(-2px);
}

.status-bar {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: bold;
    background: #e2e8f0;
    color: #475569;
}

.badge.nested {
    background: #dbeafe;
    color: #1e40af;
}

.badge.flat {
    background: #dcfce7;
    color: #166534;
}

.editor-area {
    display: flex;
    flex-direction: column;
    height: 60vh;
    min-height: 400px;
}

#css-editor {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.6;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #1e293b;
    color: #f8fafc;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

#css-editor:focus {
    border-color: var(--primary-color);
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
