/* CSS Minifier Specific Styles */

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

/* Editor Section */
.editor-section {
    margin-bottom: var(--space-6);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.editor-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.editor-stats,
.editor-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.stat-badge {
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.stat-success {
    background: var(--success-bg);
    border-color: var(--success-color);
    color: var(--success-color);
    font-weight: 600;
}

.css-editor {
    width: 100%;
    min-height: 300px;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    resize: vertical;
    transition: all 0.2s ease;
}

.css-editor:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-alpha);
}

.css-editor::placeholder {
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .editor-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .editor-stats,
    .editor-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .css-editor {
        min-height: 250px;
        font-size: 0.8125rem;
    }
}

/* Preview Section */
.preview-section {
    margin-bottom: var(--space-6);
}

.preview-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.preview-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.svg-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-preview svg {
    max-width: 100%;
    max-height: 300px;
}

.placeholder-text {
    color: var(--text-tertiary);
    font-style: italic;
}

/* Dark mode specific adjustments */
[data-theme="dark"] .svg-editor {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .stat-badge {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .svg-preview {
    background: var(--bg-tertiary);
}

