body { 
    background-color: #1a1a2e;
    color: #e0e0e0;
}

/* Custom Inputs for Dark Mode */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #4ade80;
    cursor: pointer;
    margin-top: -6px; 
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #4a5568;
    border-radius: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e; 
}
::-webkit-scrollbar-thumb {
    background: #4a5568; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4ade80; 
}

/* Result Items */
.result-image-container {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-image-container:hover {
    transform: scale(1.02);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.2);
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* Loader */
.loader {
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top: 3px solid #4ade80;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .mobile-preview-height {
        height: 45vh;
        min-height: 250px;
    }
}

/* Drag active state */
.drag-active {
    border-color: #4ade80 !important;
    background-color: rgba(74, 222, 128, 0.1) !important;
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-col: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: #2c2c54;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(74, 222, 128, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: toast-in 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), toast-out 0.3s 2.7s ease-in forwards;
}

@keyframes toast-in {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toast-out {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(10px); }
}
