#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
}

#authToken {
    margin: auto;
}

@keyframes greenFlash {
    0% {
        background-color: #2f3238;
    }

    30% {
        background-color: #4caf50;
        /* Green color */
    }

    100% {
        background-color: #2f3238;
    }
}

.result {
    background-color: #2f3238;
    position: relative;
}

.result:hover {
    background-color: rgb(108, 112, 119);
    color: black;
    cursor: pointer;
}

.result.flash {
    animation: greenFlash 0.8s ease-out 1;
}

.edit-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    width: 40px !important;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.result:hover .edit-btn {
    opacity: 1;
}

#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
}

/* Upload modal styles */
#upload-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9000;
    background: #212529;
    border: 2px solid #495057;
    border-radius: 8px;
    padding: 20px;
    min-width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Modal backdrop */
#upload-modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Close button positioning */
#upload-modal .close-modal {
    position: absolute;
    top: -25px;
    right: -9px;
}

/* queue stuff */
.queue-item {
    position: absolute;
    right: 0;
    height: 32px;
    aspect-ratio: 1/1;
    background-color: red;
    color: white;
    border: none;
    top: 0;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.queue-item-container:hover .queue-item {
    opacity: 1;
}

#gif-container {
    height: 200px;
    max-height: 200px;
    overflow: hidden;
}

#gif-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.select2-container {
    color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity)) !important;
}

.select2 {
    min-height: 38px;
    width: 100%;
}