* {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
}

:root {
    --toast-color: #00ff88;
    --primary: #00ff88;
    --dark-bg: #0d0d0d;
    --card-bg: #1a1a1a;
    --duration:5s;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.worngAnimation {
    animation: scakInput 0.5s linear;
}

/* Chrome/Edge/Safari autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    /* change white to your bg color */
    -webkit-text-fill-color: white;
    /* text color */
    transition: background-color 5000s ease-in-out 0s;
    /* ensures bg color sticks */
}

@keyframes scakInput {
    0% {
        transform: translateX(-10px);
    }

    25% {
        transform: translateX(10px);
    }

    50% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0px);
    }
}

/* HTML: <div class="loader"></div> */

.loader-overlay {
    width: 100%;
    height: 100vh;
    position: absolute;
    justify-content: center;
    align-items: center;
    z-index: 100;
    top: 0;

}

/* HTML: <div class="loader"></div> */
.loader {
    width: 190px;
    height: 24px;
    box-shadow: 0 3px 0 white;
    position: relative;
    display: grid;
    clip-path: inset(-60px 0 -5px)
}

.loader:after {
    content: "";
    position: relative;
    background: repeating-linear-gradient(90deg, #0000 0 calc(50% - 8px), #00ff88 0 calc(50% + 8px), #0000 0 100%) 0 0/calc(100%/3) 100%;
    animation: l6-1 1s infinite;
}

.loader:before {
    content: "";
    position: absolute;
    width: 14px;
    aspect-ratio: 1;
    left: calc(50% - 7px);
    bottom: 0;
    border-radius: 50%;
    background: #00ff88;
    animation: l6-2 1s infinite;
}


.toast {
    position: absolute;
    top: 25px;
    right: 30px;
    border-radius: 6px;
    background: oklch(43.564% 0.00329 286.045);
    padding: 20px 35px 20px 25px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-left: 8px solid var(--toast-color);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.25, 1.35);
    z-index: 12345678;
}

.toast.active {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toast-check {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35px;
    width: 35px;
    background-color: var(--toast-color);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
}

.message {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.message-text {
    font-size: 20px;
    font-weight: 600;
}

.text-1 {
    color: #fff;
}

.text-2 {
    color: #d8d7d7;
    font-weight: 400;
    font-size: 16px;
}

.toast-close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
    color: #fff;
}

.toast-close:hover {
    opacity: 1;
}

.progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: oklch(43.564% 0.00329 286.045);
    ;
}

.progress::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: var(--toast-color);
}

.progress.active::before {
    animation: progress var(--duration) linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

@keyframes l6-1 {

    50%,
    100% {
        background-position: calc(100%/2) 0
    }
}

@keyframes l6-2 {

    0%,
    50% {
        transform: translateY(-70px)
    }
}


.neon-border {
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    transition: box-shadow 0.3s ease;
}

.neon-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* The drag-and-drop area styling */
.drag-drop-area {
    border: 2px dashed rgba(0, 255, 136, 0.5);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Style when a file is actively being dragged over the area */
.drag-drop-area.is-dragover {
    border-color: var(--primary);
    background-color: rgba(0, 255, 136, 0.15);
    /* Stronger glow when active */
    box-shadow: 0 0 5px var(--primary);
}

/* The modal backdrop is now the main drag target */
.modal-backdrop.is-dragover {
    /* Optional visual cue for the whole screen when dragging over */
    box-shadow: inset 0 0 100px rgba(0, 255, 136, 0.2);
    border: 2px dashed var(--primary);
}
