/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Configuration Button Styles */
.config-btn {
    @apply flex flex-col items-center justify-center p-4 border-2 border-gray-200 rounded-lg transition-all duration-200 hover:border-blue-500 hover:shadow-md;
}

.config-btn.active {
    @apply border-blue-500 bg-blue-50;
}

.config-btn i {
    @apply text-gray-700;
}

.config-btn.active i {
    @apply text-blue-600;
}

.config-btn span {
    @apply mt-2 text-gray-800 font-medium;
}

/* Edge Button Styles */
.edge-btn {
    @apply flex flex-col items-center justify-center p-4 border-2 border-gray-200 rounded-lg transition-all duration-200 hover:border-purple-500 hover:shadow-md;
}

.edge-btn.active {
    @apply border-purple-500 bg-purple-50;
}

.edge-btn span {
    @apply mt-3 text-gray-800 font-medium;
}

.edge-preview {
    width: 80px;
    height: 40px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.edge-preview.polished {
    border: 2px solid #3b82f6;
}

.edge-preview.beveled {
    border: 2px solid #8b5cf6;
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
}

.edge-preview.ogee {
    border: 2px solid #ec4899;
    border-radius: 20px 20px 0 0;
}

.edge-preview.flat {
    border: 2px solid #10b981;
}

/* Preview Container */
.preview-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.glass-preview {
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .preview-container {
        aspect-ratio: 4/3;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}