/* Glassmorphism Generator Styles */

.glass-preview-container {
    min-height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: background 0.3s ease;
}

.glass-preview-box {
    width: 280px;
    padding: 30px;
    text-align: center;
    color: #333;
    transition: all 0.2s ease;
}

.glass-title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.glass-text {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Dark mode text */
[data-bs-theme="dark"] .glass-preview-box {
    color: #fff;
}

/* Background presets */
.bg-preset {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.bg-preset:hover {
    transform: scale(1.1);
    border-color: var(--bs-primary);
}

.bg-preset.active {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(5, 44, 101, 0.3);
}

[data-bs-theme="dark"] .bg-preset.active {
    box-shadow: 0 0 0 2px rgba(110, 168, 254, 0.3);
}

/* Preset glass grid */
.preset-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.preset-glass-item {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.preset-glass-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
    border-radius: inherit;
}

.preset-glass-item:hover {
    transform: scale(1.05);
}

.preset-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* 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;
}

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

    .glass-preview-box {
        width: 100%;
        max-width: 250px;
        padding: 20px;
    }

    .glass-title {
        font-size: 1.2rem;
    }

    .preset-glass-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bg-preset {
        width: 35px;
        height: 35px;
    }
}
