/* ZMS Photo Booth - Custom Styles */

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #111318;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #282e39;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #3a4150;
}

/* Hide scrollbar but keep scrolling (cross-browser) */
.hide-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge Legacy */
}

.hide-scrollbar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome/Safari */
}

/* Selected scene glow effect */
.selected-glow {
    box-shadow: 0 0 20px rgba(13, 96, 45, 0.5);
    border: 2px solid #0d602d !important;
}

/* Scene card styles */
.scene-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-card:hover {
    transform: scale(1.02);
}

.scene-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(0, 0, 0, 0) 50%);
    border-radius: 0.75rem;
    z-index: 1;
    pointer-events: none;
}

.scene-card .scene-info {
    position: relative;
    z-index: 2;
}

.scene-card .check-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #0d602d;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.scene-card.selected .check-icon {
    display: flex;
}

/* Category button active state */
.category-btn.active {
    background: rgba(13, 96, 45, 0.2);
    color: #0d602d;
    border: 1px solid rgba(13, 96, 45, 0.3);
}

.category-btn.active span,
.category-btn.active p {
    color: #0d602d;
}

/* Drag and drop states */
.drag-over {
    border-color: #0d602d !important;
    background: rgba(13, 96, 45, 0.1) !important;
}

/* Loading animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(13, 96, 45, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(13, 96, 45, 0.6);
    }
}

.loading-glow {
    animation: pulse-glow 2s infinite;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #282e39;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #0d602d;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #15803d;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #0d602d;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Color input styling */
input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    padding: 0;
    background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 2px solid #282e39;
    border-radius: 0.5rem;
}

/* Placeholder image styling */
.placeholder-image {
    background: linear-gradient(135deg, #1a1f26 0%, #282e39 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Print-ready canvas */
#printCanvas {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    aside {
        position: fixed;
        left: -100%;
        z-index: 40;
        transition: left 0.3s ease;
    }
    
    aside.open {
        left: 0;
    }
}

/* Animation for modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    animation: fadeIn 0.3s ease;
}

/* Spin animation for loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}
