/* Custom Styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.step-section {
    animation: fadeIn 0.4s ease-out;
    width: 100%;
}

.step-section.hidden {
    display: none;
}

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

/* Step Indicators */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.active .step-num {
    background-color: #06C755; /* LINE Green */
    color: white;
    border-color: #06C755;
    box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.2);
}

.step-indicator.completed .step-num {
    background-color: #06C755;
    color: white;
    border-color: #06C755;
}

.step-indicator.completed .step-text {
    color: #06C755;
}

.step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.step-text {
    font-weight: 600;
    font-size: 0.875rem;
}

.step-connector {
    width: 3rem;
    height: 2px;
    background-color: #e2e8f0;
    border-radius: 9999px;
}

/* 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;
}

/* Crop Tool */
#cropOverlay {
    cursor: crosshair;
}

.handle {
    width: 12px;
    height: 12px;
    background: #3b82f6;
    position: absolute;
    bottom: -6px;
    right: -6px;
    cursor: nwse-resize;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Grid Pattern for Transparent Backgrounds */
.bg-checkerboard {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M0 0h8v8H0V0zm8 8h8v8H8V8z'/%3E%3C/g%3E%3C/svg%3E");
}

.bg-checkerboard-dark {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cg fill='%2327272a' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M0 0h8v8H0V0zm8 8h8v8H8V8z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Range Input Styling */
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: #3b82f6;
    cursor: pointer;
    margin-top: -6px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 2px;
}

/* Toast Animation */
.toast-enter {
    transform: translateX(100%);
    opacity: 0;
}
.toast-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease-out;
}
.toast-exit {
    transform: translateX(0);
    opacity: 1;
}
.toast-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in;
}
