.nav-links {
    opacity: 0;
}

.nav-links.ready {
    opacity: 1;
    transition: opacity 0.1s ease-out;
}

/* User Info UI */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(145, 70, 255, 0.1);
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(145, 70, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.user-info img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.user-info .user-name {
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-info .user-role {
    font-weight: normal;
    font-size: 10px;
    opacity: 0.7;
}

.user-info .logout-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    text-decoration: none;
    margin-left: 4px;
}

/* Toast Styles moved from script to CSS */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.95), rgba(124, 58, 237, 0.95));
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(145, 70, 255, 0.3);
    font-size: 14px;
    font-weight: 600;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.toast.error {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
}

.toast.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
}

.toast-icon {
    font-size: 20px;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: white;
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}