/* Border Radius Generator Specific Styles */

/* Slider Styling */
.slider {
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    outline: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider::-moz-range-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Preview Container Styles */
.preview-container {
    min-height: 250px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Background Option Buttons */
#bg-light,
#bg-dark,
#bg-gradient,
#bg-pattern,
#element-blue,
#element-green,
#element-orange,
#element-solid {
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

#bg-light:hover,
#bg-dark:hover,
#bg-gradient:hover,
#bg-pattern:hover,
#element-blue:hover,
#element-green:hover,
#element-orange:hover,
#element-solid:hover {
    border-color: #3b82f6;
    transform: scale(1.1);
}

#bg-light.active,
#bg-dark.active,
#bg-gradient.active,
#bg-pattern.active,
#element-blue.active,
#element-green.active,
#element-orange.active,
#element-solid.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Preview Background Variations */
.preview-container.bg-light {
    background-color: #f9fafb;
}

.preview-container.bg-dark {
    background-color: #1f2937;
}

.preview-container.bg-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.preview-container.bg-pattern {
    background-color: #ffffff;
    background-image: repeating-conic-gradient(#f3f4f6 0% 25%, transparent 0% 50%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Preview Element Base Styles */
#preview-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#preview-element::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1)), linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.3;
    pointer-events: none;
}

/* Preset Button Styles */
.preset-btn {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.preset-btn:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.preset-btn.active {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.preset-preview {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    margin: 0 auto 8px;
    transition: all 0.3s ease;
    position: relative;
}

.preset-btn:hover .preset-preview {
    transform: scale(1.05);
}

.preset-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    line-height: 1.2;
}

.preset-description {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.3;
}

/* Code Block Styling */
pre {
    font-family: "Fira Code", "SF Mono", Monaco, Inconsolata, "Roboto Mono", "Source Code Pro", monospace;
    line-height: 1.5;
    tab-size: 2;
}

pre code {
    display: block;
    padding: 0;
    background: none;
    border: none;
    font-size: 13px;
}

/* Syntax Highlighting for Light Mode */
.token.property {
    color: #0f766e;
}

.token.punctuation {
    color: #374151;
}

.token.string {
    color: #059669;
}

.token.number {
    color: #dc2626;
}

/* Remove mode toggle buttons since we're not using device previews anymore */

/* Performance Bar Animations */
#performance-bar {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#performance-bar.excellent {
    background: linear-gradient(90deg, #10b981, #34d399);
}

#performance-bar.good {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

#performance-bar.moderate {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

#performance-bar.poor {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Input Focus States */
input[type="text"]:focus,
input[type="range"]:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    ring-opacity: 50%;
    border-color: #3b82f6;
}

/* Button Hover Effects */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .preview-container {
        min-height: 150px;
        max-height: 200px;
    }

    #preview-element {
        width: 100px !important;
        height: 100px !important;
        font-size: 12px;
    }

    .preset-preview {
        width: 32px;
        height: 32px;
    }

    .preset-name {
        font-size: 11px;
    }

    .preset-description {
        font-size: 9px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Light Mode Only - No Dark Mode Support */ /* Animation for preview updates */
.preview-updating {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 1;
    pointer-events: none;
}

.tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(1px);
    border: 5px solid transparent;
    border-top-color: #374151;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.tooltip:hover::before {
    opacity: 1;
}
