/*
======================
== GLOBAL VARIABLES ==
======================
*/
.fish-ui-vars-colors,
.fish-ui-vars-global {
    --backgroundColorPrimary:   #000000;
    --backgroundColorSecondary: #090909;
    --backgroundColorTertiary:  #151515;
    --fontColorPrimary:         #d3d3d3;
}

.fish-ui-vars-scrollbar,
.fish-ui-vars-global {
    /* Scrollbar Variables */
    --scrollbarTrackColor:      #424242;
    --scrollbarThumbColor:      #686868;
    --scrollbarThumbColorHover: #7b7b7b;
}


/* Custom Scrollbar */
.fish-ui__custom-scrollbar::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.fish-ui__custom-scrollbar::-webkit-scrollbar-track {
    background-color: var(--scrollbarTrackColor);
    border-radius: 6px;
}

.fish-ui__custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--scrollbarThumbColor);
    border-radius: 6px;
}

.fish-ui__custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbarThumbColorHover);
}

.fish-ui__custom-scrollbar {
    scrollbar-color: var(--scrollbarThumbColor) var(--scrollbarTrackColor);
    scrollbar-width: thin;
}

.fish-ui__button {
    color: var(--fontColorPrimary);
}



/* Master class to reset and standardize input styling */
.input-reset,
.input-reset:hover,
.input-reset:focus,
.input-reset:active {
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-color 5000s ease-in-out 0s;
    font-size: 18px !important; /* Explicitly set font size */
    font-family: 'Roboto', sans-serif;
}

/* Autofill Styles */
.input-reset:-webkit-autofill,
.input-reset:-webkit-autofill:hover,
.input-reset:-webkit-autofill:focus,
.input-reset:-webkit-autofill:active {
    -webkit-background-clip: text;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
    font-size: 13px !important; /* Explicitly set font size */
    font-family: 'Roboto', sans-serif !important;
    transform: scale(1.35) translate(12.7%, 1px);
}



/* Fancy Text Boxes */

.fish-ui__textarea {
    position: relative;
    display: block;
    resize: none;
    background: transparent;
    border: none;
    font-family: Roboto;
    font-size: 18px;
    margin-top: 3px;
    outline: none;
    letter-spacing: 0.2px;
    color: #cfcfcf;
    height: calc(100% - 25px);
    width: calc(100% - 20px);
}
.fish-ui__textarea::placeholder {
    color: #6b6b6b;
    font-size: 16px;
}

.fish-ui__textinput-border-standard {
    border: 2px solid #373a40;
    border-radius: 10px;
}
.fish-ui__textinput-padding-standard {
    padding: 12px 10px;
}

.fish-ui__textarea-label {
    position: absolute;
    top: -15px;
    left: 11px;
    font-family: Roboto;
    font-size: 17px;
    background-color: var(--backgroundColorPrimary);
    color: rgb(185 182 182);
    padding: 0 6px;
    border-radius: 10px;
}

.fish-ui__small-text-container {
    position: relative;
    width: calc(100% - 4px);
    margin-bottom: 34px;
    margin-top: 10px;
    height: 47px;
}


/* Fancy <HR>s with Headers*/

.fish-ui__header {
    position: relative;
    width: calc(100% - 8px);
    max-width: calc(800px - 5px);
    margin: 0 auto;
    /* TODO: This margins shouldn't be hard-coded */
    margin-top: 35px;
    margin-bottom: 45px;
    display: flex;
}

.fish-ui__header .left-line {
    flex-grow: 2;
    margin-top: 14px;
    height: 3px;
    background-color: #999;
    border-radius: 30px;
    margin-right: 15px;
}

.fish-ui__header .mid-text {
    font-family: roboto, sans-serif;
    letter-spacing: 0.4px;
    position: relative;
    top: 13px;
    line-height: 0;
    color: #999;
}

.fish-ui__header .right-line {
    flex-grow: 2;
    margin-top: 13px;
    height: 3px;
    background-color: #999;
    border-radius: 30px;
    margin-left: 15px;
}

.fish-ui__header-standard .mid-text {
    font-size: 23px;
}

.fish-ui__header-large .mid-text {
    font-size: 30px;
}

.fish-ui__header-smallcaps .mid-text {
    top: 10px;
    font-size: 40px;
    font-variant: all-small-caps;
}


/* Fancy Buttons */

.fish-ui_button-container {
    position: relative;
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    overflow: hidden;
}

.fish-ui__button {
    min-width: 110px;
    padding: 10px 20px;
    text-align: center;
    color: #cfcfcf;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: all .2s;
    background-color: var(--backgroundColorTertiary);
    overflow: hidden;
    border-radius: 7px;
    border: 1px solid #181818;
}

.fish-ui__button-container.disabled {
    border-color: #2b2d31;
    cursor: not-allowed;
}

.fish-ui__button-container.green {
    border-color: #01651e;
}
.fish-ui__button-container.yellow {
    border-color: #9b8f26;
}
.fish-ui__button-container.red {
    border-color: #FF5722;
}
.fish-ui__button-container.blue {
    border-color: #00a2c7;
}

.fish-ui__button-container.disabled .fish-ui__button {
    opacity: 0.5;
    cursor: not-allowed;
}

.fish-ui__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.fish-ui__button.large {
    font-size: 22px;
}

.fish-ui__button:hover {
    background-color: #FFF2;
}


/* Define the gradient animation */
@keyframes shimmerAnimation {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Button Loading Style */
.fish-ui__button-container.loading .fish-ui__button {
    cursor: wait; /* Indicate loading state */
    /* Add a shimmer effect */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.15) 100%);
    background-size: 200% 100%;
    animation: shimmerAnimation 2.5s linear infinite;
}

/* Define the shake animation */
@keyframes shakeAnimation {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.fish-ui__small-text-container.shake {
    animation:  shakeAnimation 0.5s cubic-bezier(0.28, 0.84, 0.42, 1);
}

.fish-ui__small-text-container.error {
    border-color: #FF5722;
    box-shadow: 4px 0 0 0 inset #FF5722;
}