/* Custom CSS styles for ImageStudio Pro */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dark Mode Scrollbars */
html.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Drag and Drop Zone active state */
.drag-active {
    border-color: #4f46e5 !important;
    background-color: #eef2ff !important;
    transform: scale(1.01);
}

html.dark .drag-active {
    background-color: #1e1b4b !important;
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html.dark .glass-panel {
    background: rgba(15, 23, 42, 0.85);
}

/* Cropper Customization */
.cropper-view-box,
.cropper-face {
    border-radius: 8px;
}

.cropper-line {
    background-color: #6366f1;
}

.cropper-point {
    background-color: #4f46e5;
    width: 8px;
    height: 8px;
}

/* Range Input Custom Styling */
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Dark Mode Specific Overrides */
html.dark select optgroup {
    background-color: #1e293b;
    color: #f8fafc;
}

html.dark select option {
    background-color: #1e293b;
    color: #f8fafc;
}

/* Loading spinner overlay */
.spinner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    border-radius: 1rem;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 36px;
    height: 36px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

