/* Header styles for user icon */
#header .header-icon {
    height: 100%;
    margin-left: 24px;
}

#header .header-icon img {
    height: 1.5em;
    vertical-align: middle;
}

/* Generic css to hide object */
.hidden {
    display: none !important;
}

/* Center page-wrapper in the middle of the flex space */
.wrapper-align-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom styles for the token counter */
.token-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.token-counter {
    width: 32px;
    height: 32px;
    background-color: #21b2a6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 4rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9999;
}

.notification {
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: white;
    min-width: 15vw;
    max-width: 40vw;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    font-family: sans-serif;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 0.9rem;
}

.notification.info {
    background-color: #007bff;
}
.notification.warning {
    background-color: #ffc107;
}
.notification.error {
    background-color: #dc3545;
}

.notification span {
    max-width: 300px;
    margin-right: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.notification .close-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0 1rem 0 1rem;
    width: 44px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media screen and (max-width: 736px) {
    .notification {
        max-width: 100vw;
    }
}

/* Modal iframe properties */
.modal-iframe {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

/* Loader / spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Asegúrate de que esté delante del contenido */
}

.spinner-loader {
    border: 8px solid #f3f3f3; /* Color claro de fondo */
    border-top: 8px solid #3498db; /* Color del spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
