/* Glassmorphism Generator Styles */
.glassmorphism-generator {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Preview Area */
.preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.glass-preview {
    width: 400px;
    height: 300px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #72edf2 10%, #5151e5 100%);
}

.glass-element {
    width: 80%;
    height: 60%;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    text-align: center;
}

/* Controls Section */
.glass-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .glass-controls {
        grid-template-columns: 1fr;
    }
}

/* Background Controls */
.background-controls {
    margin-bottom: 20px;
}

.background-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.background-option {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background-size: cover;
}

.background-option:hover {
    border-color: #0d6efd;
}

.background-option.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* Glass Effect Controls */
.effect-controls {
    margin-bottom: 20px;
}

.control-group {
    margin-bottom: 15px;
}

.control-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-input {
    flex: 1;
}

.slider-value {
    width: 50px;
    text-align: center;
    font-size: 14px;
    color: #495057;
}

/* Border Controls */
.border-controls {
    margin-bottom: 20px;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.color-picker-label {
    font-size: 14px;
    color: #495057;
    min-width: 100px;
}

.color-picker {
    width: 60px;
    height: 30px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
}

/* Output Section */
.output-section {
    grid-column: 1 / -1;
    background: #f1f3f5;
    padding: 15px;
    border-radius: 6px;
}

.output-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
}

.css-output {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: none;
    min-height: 120px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.action-btn {
    padding: 8px 15px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn.copy-btn {
    background: #6c757d;
}

.action-btn.copy-btn:hover {
    background: #5c636a;
}

.action-btn.copy-btn.copied {
    background: #198754;
}

.action-btn.download-btn {
    background: #0d6efd;
}

.action-btn.download-btn:hover {
    background: #0b5ed7;
}

/* Slider Customization */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #dee2e6;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}