/* CSS Border Radius Generator Styles */

.border-radius-preview-container {
    min-height: 320px;
    background: repeating-conic-gradient(#e2e8f0 0% 25%, transparent 0% 50%) 50% / 20px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

[data-bs-theme="dark"] .border-radius-preview-container {
    background: repeating-conic-gradient(#374151 0% 25%, transparent 0% 50%) 50% / 20px 20px;
}

.border-radius-preview-box {
    width: 250px;
    height: 250px;
    background-color: #6366f1;
    transition: all 0.2s ease;
}

/* Preset shapes grid */
.preset-border-radius-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.preset-border-radius-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preset-border-radius-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.preset-border-radius-item .preset-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    padding: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* CSS Output */
.css-output {
    background: var(--bs-secondary-bg);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--bs-body-color);
    overflow-x: auto;
}

/* Mode button group styling */
.btn-group .btn-check:checked + .btn-outline-primary {
    background-color: var(--bs-primary);
    color: #fff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .border-radius-preview-container {
        min-height: 280px;
        padding: 20px;
    }

    .border-radius-preview-box {
        width: 200px;
        height: 200px;
    }

    .preset-border-radius-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .preset-border-radius-item .preset-name {
        font-size: 0.6rem;
    }

    /* Blob controls responsive */
    #blobControls .col-md-6 {
        flex-direction: column;
    }

    #blobControls .d-flex.gap-2 {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .border-radius-preview-box {
        width: 160px;
        height: 160px;
    }

    .preset-border-radius-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
